Skip to content
Snippets Groups Projects
Select Git revision
  • c145a143b16f6fae410364841cc4c44e08b0704b
  • master default protected
  • fix_Makefile.mingw#2
  • update_Makefile.mingw
  • fix_Makefile.mingw
  • fix_API_for_C_apps
  • fix_procinfo_mac
  • boinccmd_gpu_mode_always_until_sigterm
  • fgrp_osx_hotfix
  • fix_boinc_master@f8250782
  • eah_wrapper_improvements
  • diagnostics_win-hotfix
  • diagnostics_win-hotfix-old
  • current_fgrp_apps
  • testing_gw_apps
  • gw_app_darwin_15
  • current_brp_apps
  • current_brp_apps_android10
  • current_gfx_apps
  • current_server
  • current_gw_apps
  • previous_fgrp_apps
  • previous_gw_apps
  • testing_brp_apps
  • apps_FGRP3_1.07
  • apps_FGRP3_1.08
26 results

boinc_api.h

Blame
    • David Anderson's avatar
      a3f80676
      - API and client: add an API function boinc_temporary_exit(dt). · a3f80676
      David Anderson authored
          This exits the app with status zero and no finish file,
          so the client will restart it.
          It creates a file "temporary_exit" containing dt.
          The (new) client reads this file and will postpone
          scheduling the job again for dt seconds.
          Old clients will treat it as a premature exit,
          and potentially try to reschedule the job immediately.
      
          This function is intended for GPU applications that
          fail to allocate GPU RAM,
          presumably because a non-GPU application has it allocated.
          We don't want the job to fail,
          and we want to wait for a while before trying the allocation again.
      
      svn path=/trunk/boinc/; revision=19879
      a3f80676
      History
      - API and client: add an API function boinc_temporary_exit(dt).
      David Anderson authored
          This exits the app with status zero and no finish file,
          so the client will restart it.
          It creates a file "temporary_exit" containing dt.
          The (new) client reads this file and will postpone
          scheduling the job again for dt seconds.
          Old clients will treat it as a premature exit,
          and potentially try to reschedule the job immediately.
      
          This function is intended for GPU applications that
          fail to allocate GPU RAM,
          presumably because a non-GPU application has it allocated.
          We don't want the job to fail,
          and we want to wait for a while before trying the allocation again.
      
      svn path=/trunk/boinc/; revision=19879
    test_aperture.py 709 B
    from pykat.utilities.optics.gaussian_beams import gauss_param
    from pykat import finesse
    from pykat.commands import xaxis
    import pylab as pl
    import numpy as np
    import math
    
    code = """
    l l1 1 0 0 n1
    s s1 10 1 n1 n2
    m m1 1 0 0 n2 n3
    
    pd refl n2
    
    xaxis m1 r_ap lin 0.1e-3 2e-3 10
    """
    
    kat = finesse.kat()
    kat.parseCommands(code)
    
    maxtem = np.arange(0, 4)
    
    kat.m1.n2.q = gauss_param(w0=1e-3, z=0)
    
    kat.verbose = False
    
    for tem in maxtem:
        print "Calculating maxtem ", tem, "..."
        kat.maxtem = tem
    
        r = kat.run()
        pl.plot(r.x/1e-3, r.y, label="maxtem={0}".format(tem))
    
    pl.ylabel("Reflected Power [W]")
    pl.xlabel("Mirror aperture [mm]")
    pl.legend()
    pl.show()