描述
What are Batch Licenses?
The license file for COMSOL Multiphysics® contains a list of license features that correspond to the different COMSOL products and software components. With a single Floating Network License, you will see that in the license file there are two lines with license features corresponding to each product: the regular license feature and one ending in BATCH. For example, for COMSOL Multiphysics® there areCOMSOLandCOMSOLBATCH, and for the RF Module there areRFandRFBATCH.
The purpose of the batch licenses is to enable users to only use a single Floating Network License for simultaneously running batch jobs on a more powerful computer (or a cluster) and working with a model in the COMSOL Multiphysics® user interface (UI) on their local computer.
How Do I Use Batch Licenses?
Depending on how you launch your jobs on a computer or cluster, the approach to make sure that the batch licenses are used varies.
From the UI
If you have aCluster Computingnode or aCluster Sweepnode in your study, there is a check box calledUse batch license. Selecting that check box will ensure that the batch licenses are used when the study is computed.
From the Command Line
Add the-usebatchlicoption to the COMSOL command.
comsol batch -usebatchlic -inputfile model.mph -outputfile out.mph -batchlog model.mph.log
In a Submission Script
Add the-usebatchlicoption to the COMSOL command.
#!/bin/bash # slurmsubmit.sh #SBATCH --nodes=2 #SBATCH --ntasks-per-node=2 #SBATCH --exclusive #SBATCH -D "/srv/data/comsol61/bin" #SBATCH -o "${HOME}/logs/slurm.out" #SBATCH -e "${HOME}/logs/slurm.err" # To use the batch license, add the -usebatchlic option to the COMSOL command: comsol batch -usebatchlic -mpibootstrap slurm -inputfile model.mph -outputfile out.mph -batchlog model.mph.log
Note on Version Compatibility
When a model is built and solved on different computers, it is recommended to use the same COMSOL version and update (build number) on both machines. If this is not possible, then the model can instead be saved right before solving. The Cluster Computing and Cluster Sweep nodes handle this automatically. On the command line or in a script, this can be done manually:
comsol batch -usebatchlic -norun -inputfile model.mph comsol batch -usebatchlic -inputfile model.mph ...
COMSOL 已尽一切合理的努力核实本页面所提供的信息。但请注意,所有资源与文档仅供学习参考。COMSOL 不对其有效性作任何明示或暗示的声明,亦不承担因所披露数据的准确性而产生的任何法律责任。本文提及的所有商标均为其各自所有者的财产。有关完整的商标信息,请参阅相关产品手册。



