CODARcode / Example-Heat_Transfer

3 stars 3 forks source link

Updates for file-based method #8

Closed jychoi-hpc closed 7 years ago

jychoi-hpc commented 7 years ago

Updates for file-based running. Users can now use MPI method, along with FLEXPATH and DATASPACES, as follows:

./run-workflow.sh P [DATASPACES|FLEXPATH|MPI]

Use MPI method in `heat_transfer.xml is required.

The document is updated as well.

j-woz commented 7 years ago

launch() returns exactly when exit_code1 is available, which means that the MPI processes all exited. stage_write and heat_transfer should be launched at the same time via launch_multi(): https://github.com/CODARcode/SwiftExamples/tree/master/pipeline1

kshitij-v-mehta commented 7 years ago

Thanks Justin. We must note that with the MPI method (file-based), heat_transfer has to run first, followed by stage_write. launch_multi cannot be used here, as these must be two, separate launch calls. Which reminds me, this script does use launch_multi at all for dataspaces and flexpath. The script generated by cheetah utilizes launch_multi. This one needs to be updated.