Giter Site home page Giter Site logo

clrp-code / egsnrc_clrp Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 8.0 39.46 MB

The CLRP fork of EGSnrc containing additions to egs++ and egs_brachy, an egs++ brachytherapy application

License: GNU Affero General Public License v3.0

Makefile 1.98% C 2.88% TeX 24.11% Shell 2.60% PostScript 0.23% Io 0.16% CSS 0.20% HTML 0.03% C++ 42.17% GLSL 1.34% QMake 0.10% Fortran 8.20% MAXScript 0.05% Tcl 15.71% Batchfile 0.05% Ruby 0.18% Python 0.02%

egsnrc_clrp's People

Contributors

blakewalters avatar crcrewso avatar efletcher avatar ftessier avatar jantolak avatar jw3126 avatar klunkerball avatar mainegra avatar marenaud avatar martinmartinov avatar mchamberland avatar mpayrits avatar mstoeckl avatar mxxo avatar randlet avatar rtownson avatar simonbiggs avatar victormalkov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

egsnrc_clrp's Issues

Lock file delays in egs-parallel-cpu breaks URCO submission

The following lines in egs-parallel-cpu are not compatible with the uniform run control object because no lock file is created when using URCO:

if [ $job -eq 1 ]; then
exitLoopCount=0
while [ ! -f $basename".lock" ]; do
exitLoopCount=$((exitLoopCount + 1))
log "$jobstr: waiting for "$basename".lock generation, attempt "$exitLoopCount
/bin/sleep $delay
if [ $exitLoopCount -eq 12 ]; then
log "$jobstr: did not find "$basename".lock after "$exitLoopCount" attempts..."
log "$jobstr: ensure "$basename"runs interactively or try using longer delay,"
log "$jobstr: aborting submission script."
exit
fi
done
fi

Perhaps EGSncr_CLRP should offer an egs-parallel-clrp that calls this modified egs-parallel-cpu (maybe call it egs-parallel-cpu-clrp) and leave the original script unmodified, to allow users to use the URCO option.

Segmentation fault -> EXC_BAD_ACCESS

A stack trace when running egs_brachy through a debugger gives the following error (occurs on the order of 10e6 histories into the simulation):

  1This version of LLDB has no plugin for the language "fortran90". Inspection of frame variables will be limited.

Process 82358 stopped

  • thread 1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xfffffffd008c5250)
    frame #0: 0x00000001001172b6 egs_brachy`electr_ at egsnrc_debug.F:11929:72
    11926 END IF
    11927 aux = aux*(1+2aux)(fedep/(2-fedep))**2/6
    11928 tuss = fedepekededxmid*(1+aux)
    -> 11929 ekei = E_array(lelkef+1,medium)
    11930 elkei = (lelkef + 1 - eke0(medium))/eke1(medium)
    11931 fedep = 1 - ekef/ekei
    11932 elktmp = 0.5*(elkei+elkef+0.25fedepfedep*(1+fede
    Target 0: (egs_brachy) stopped.

  • thread 1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xfffffffd008c5250)

    • frame 0: 0x00000001001172b6 egs_brachyelectr_ at egsnrc_debug.F:11929:72 frame 1: 0x0000000100154a37 egs_brachy::egs_shower_() at egs_interface2.c:95:29
      frame 2: 0x00000001000e09d2 egs_brachyEGS_AdvancedApplication::shower(this=0x00007ff7bfefe9f8) at egs_advanced_application.cpp:873:5 frame 3: 0x0000000100018495 egs_brachyEB_Application::simulateSingleShower(this=0x00007ff7bfefe9f8) at egs_brachy.cpp:2117:15
      frame 4: 0x0000000105ccffe2 libegspp.dylibEGS_Application::runSimulation(this=0x00007ff7bfefe9f8) at egs_application.cpp:894:21 frame 5: 0x0000000100017fd6 egs_brachyEB_Application::runSimulation(this=0x00007ff7bfefe9f8) at egs_brachy.cpp:2038:35
      frame 6: 0x000000010001acaa egs_brachymain(argc=3, argv=0x00007ff7bfeff420) at egs_brachy.cpp:2554:1 frame 7: 0x000000010588551e dyldstart + 462

This occurs for Ir192 HDR simulations with huge patient CTs (1024 x 1024 x ~200), generated egsphants and egsinp files in eb_GUI. Google Drive link to necessary input files (patient is anonymized): https://drive.google.com/file/d/1__mFJ0-W2YkqDA666_1qMyS2UfqztLCZ/view?usp=sharing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.