Star-CCM+: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 142: Line 142:
|lang="bash"
|lang="bash"
|contents=
|contents=
<pre>
#!/bin/bash
#!/bin/bash
#SBATCH --time=0-00:30        # Time limit: d-hh:mm
#SBATCH --time=0-00:30        # Time limit: d-hh:mm
Line 169: Line 170:
RET=-1
RET=-1
while [ $i -le 5 ] && [ $RET -ne 0 ]; do
while [ $i -le 5 ] && [ $RET -ne 0 ]; do
         [ $i -eq 1 ] \|\| sleep 5
         [ $i -eq 1 ] || sleep 5
         echo "Attempt number: "$i
         echo "Attempt number: "$i
         starccm+ -power -np $NCORE -podkey $LM_PROJECT  -machinefile $SLURM_SUBMIT_DIR/machinefile_$SLURM_JOB_ID -batch $SLURM_SUBMIT_DIR/your-simulation-file.java $SLURM_SUBMIT_DIR/your-simulation-file.sim > $SLURM_JOB_ID.results
         starccm+ -power -np $NCORE -podkey $LM_PROJECT  -machinefile $SLURM_SUBMIT_DIR/machinefile_$SLURM_JOB_ID -batch $SLURM_SUBMIT_DIR/your-simulation-file.java $SLURM_SUBMIT_DIR/your-simulation-file.sim > $SLURM_JOB_ID.results
Line 176: Line 177:
   done
   done
exit $RET
exit $RET
</pre>
}}</tab>
}}</tab>
</tabs>
</tabs>
cc_staff
290

edits