cc_staff
1,857
edits
mNo edit summary |
mNo edit summary |
||
Line 28: | Line 28: | ||
<!--T:5--> | <!--T:5--> | ||
When submitting jobs on a cluster for the first time, you must set up the environment to use your license. If you are using CD-adapco's online <i>pay-on-usage</i> server, simply create a <code>~/.licenses/starccm.lic</code> file as shown in the <b>POD license file</b> section above and license checkouts should immediately work. If however you are using an internal license server, then after creating <code>~/.licenses/starccm.lic</code> you must submit a problem ticket to [[technical support]] so we can help co-ordinate the necessary one time network firewall changes required to access it. If you still have problems getting the licensing to work then try removing or renaming file <code>~/.flexlmrc</code> since previous search paths and/or license server settings maybe stored in it which conflict with your current <code>starccm.lic</code> settings. Not e that files from previous may have accumulated a significant amount of disc space in hidden directories named <code>.star-version_number</code> if you have run many long jobs in the past using older slurm scripts or if you regularly run starccm+ in gui mode. These can be removed periodically by carefully running the command <code>rm -rfIv ~/.starccm*</code> where the v option will list everything that is erased. | |||
<!--T:263--> | <!--T:263--> | ||
Line 75: | Line 71: | ||
<!--T:270--> | <!--T:270--> | ||
# Remove "-power -podkey $LM_PROJECT" when using an institutional license server… | # 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 | starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -nbuserdir $SLURM_TMPDIR -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim | ||
<!--T:271--> | <!--T:271--> | ||
Line 118: | Line 114: | ||
<!--T:278--> | <!--T:278--> | ||
# Remove "-power -podkey $LM_PROJECT" when using an institutional license server… | # 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 | starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -nbuserdir $SLURM_TMPDIR -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2 | ||
<!--T:279--> | <!--T:279--> | ||
Line 148: | Line 144: | ||
export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE' | export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE' | ||
export CDLMD_LICENSE_FILE="1999@flex.cd-adapco.com" | export CDLMD_LICENSE_FILE="1999@flex.cd-adapco.com" | ||
<!--T:306--> | <!--T:306--> | ||
slurm_hl2hl.py --format STAR-CCM+ > $ | slurm_hl2hl.py --format STAR-CCM+ > $SLURM_TMPDIR/machinefile | ||
<!--T:307--> | <!--T:307--> | ||
Line 161: | Line 153: | ||
<!--T:287--> | <!--T:287--> | ||
# Remove "-power -podkey $LM_PROJECT" when using an institutional license server… | # 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+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -nbuserdir -licpath $CDLMD_LICENSE_FILE -nbuserdir $SLURM_TMPDIR -machinefile $SLURM_TMPDIR/machinefile $SLURM_SUBMIT_DIR/your-file.sim -mpi intel -fabric psm2 | ||
<!--T:288--> | <!--T:288--> | ||
Line 203: | Line 195: | ||
<!--T:295--> | <!--T:295--> | ||
# Remove "-power -podkey $LM_PROJECT" when using an institutional license | # 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 | starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -nbuserdir $SLURM_TMPDIR -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi openmpi | ||
<!--T:296--> | <!--T:296--> | ||
Line 257: | Line 249: | ||
echo "Attempt number: "$I | echo "Attempt number: "$I | ||
# Remove "-power -podkey $LM_PROJECT" when using an institutional license server… | # 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 | starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -nbuserdir $SLURM_TMPDIR -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)) |