38,760
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 54: | Line 54: | ||
mkdir -p "$STARCCM_TMP" | mkdir -p "$STARCCM_TMP" | ||
slurm_hl2hl.py --format STAR-CCM+ > machinefile-$SLURM_JOB_ID | slurm_hl2hl.py --format STAR-CCM+ > $STARCCM_TMP/machinefile-$SLURM_JOB_ID | ||
NCORE=$((SLURM_NTASKS * SLURM_CPUS_PER_TASK)) | NCORE=$((SLURM_NTASKS * SLURM_CPUS_PER_TASK)) | ||
starccm+ -batch -power -np $NCORE | # Remove "-power -podkey $LM_PROJECT" when using an institutional license server ... | ||
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim | |||
}}</tab> | }}</tab> | ||
Line 85: | Line 86: | ||
mkdir -p "$STARCCM_TMP" | mkdir -p "$STARCCM_TMP" | ||
slurm_hl2hl.py --format STAR-CCM+ > machinefile-$SLURM_JOB_ID | slurm_hl2hl.py --format STAR-CCM+ > $STARCCM_TMP/machinefile-$SLURM_JOB_ID | ||
NCORE=$(( | NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE)) | ||
starccm+ -batch -power -np $NCORE | # Remove "-power -podkey $LM_PROJECT" when using an institutional license server ... | ||
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2 | |||
}}</tab> | }}</tab> | ||
Line 116: | Line 118: | ||
mkdir -p "$STARCCM_TMP" | mkdir -p "$STARCCM_TMP" | ||
slurm_hl2hl.py --format STAR-CCM+ > machinefile-$SLURM_JOB_ID | slurm_hl2hl.py --format STAR-CCM+ > $STARCCM_TMP/machinefile-$SLURM_JOB_ID | ||
NCORE=$((SLURM_NTASKS * SLURM_CPUS_PER_TASK)) | NCORE=$((SLURM_NTASKS * SLURM_CPUS_PER_TASK)) | ||
# Remove "-podkey $LM_PROJECT" | # Remove "-power -podkey $LM_PROJECT" when using an institutional license server ... | ||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2 | |||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -np $NCORE | |||
}}</tab> | }}</tab> | ||
Line 149: | Line 150: | ||
mkdir -p "$STARCCM_TMP" | mkdir -p "$STARCCM_TMP" | ||
slurm_hl2hl.py --format STAR-CCM+ > machinefile-$SLURM_JOB_ID | slurm_hl2hl.py --format STAR-CCM+ > $STARCCM_TMP/machinefile-$SLURM_JOB_ID | ||
NCORE=$((SLURM_NTASKS * SLURM_CPUS_PER_TASK)) | NCORE=$((SLURM_NTASKS * SLURM_CPUS_PER_TASK)) | ||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -np $NCORE | # Remove "-power -podkey $LM_PROJECT" when using an institutional license server ... | ||
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi openmpi | |||
}} | }} | ||
Line 191: | Line 193: | ||
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: "$ | echo "Attempt number: "$I | ||
starccm+ -batch -power -np $NCORE | # Remove "-power -podkey $LM_PROJECT" when using an institutional license server ... | ||
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -machinefile $SLURM_SUBMIT_DIR/machinefile_$SLURM_JOB_ID $SLURM_SUBMIT_DIR/your-simulation-file.java $SLURM_SUBMIT_DIR/your-simulation-file.sim > $SLURM_JOB_ID.results | |||
RET=$? | RET=$? | ||
i=$((i+1)) | i=$((i+1)) | ||
Line 200: | Line 203: | ||
</tab> | </tab> | ||
</tabs> | </tabs> | ||
= Remote visualization = | = Remote visualization = |