diff --git a/docs.it4i/software/cae/comsol/comsol-multiphysics.md b/docs.it4i/software/cae/comsol/comsol-multiphysics.md index 5a997572abed39eb584d58b92ecf530357cca4f0..ecd66a4e207e55b18545f569dc3fdf18a757c832 100644 --- a/docs.it4i/software/cae/comsol/comsol-multiphysics.md +++ b/docs.it4i/software/cae/comsol/comsol-multiphysics.md @@ -1,6 +1,3 @@ -!!!warning - This page has not been updated yet. The page does not reflect the transition from PBS to Slurm. - # COMSOL Multiphysics ## Introduction @@ -29,7 +26,7 @@ By default, the **EDU variant** is loaded. If you needs other version or variant $ ml av COMSOL ``` -To prepare COMSOL jobs in the interactive mode, we recommend using COMSOL on the compute nodes via the PBS Pro scheduler. +To prepare COMSOL jobs in the interactive mode, we recommend using COMSOL on the compute nodes. !!! Note To run the COMSOL Desktop GUI on Windows, we recommend using the [Virtual Network Computing (VNC)][2]. @@ -37,7 +34,7 @@ To prepare COMSOL jobs in the interactive mode, we recommend using COMSOL on the Example for Karolina: ```console -$ qsub -I -X -A PROJECT_ID -q qprod -l select=1:ncpus=128:mpiprocs=128 +$ salloc -A PROJECT_ID -p qexp --nodes=1 --ntasks=128 --cpus-per-task=1 --x11 $ ml av COMSOL ------------------------------ /apps/modules/phys ----------------------------- @@ -62,14 +59,14 @@ you need to run COMSOL with additional parameters: $ comsol -3drend sw ``` -To run COMSOL in batch mode without the COMSOL Desktop GUI environment, utilize the following (`comsol.pbs`) job script and execute it via the `qsub` command: +To run COMSOL in batch mode without the COMSOL Desktop GUI environment, utilize the following (`comsol.pbs`) job script and execute it via the `salloc` command: ```bash #!/bin/bash -#PBS -l select=3:ncpus=128:mpiprocs=128 -#PBS -q qprod -#PBS -N JOB_NAME -#PBS -A PROJECT_ID +#SBATCH --nodes=3 --ntasks-per-node=128 --cpus-per-task=1 +#SBATCH -p qcpu +#SBATCH -N JOB_NAME +#SBATCH -A PROJECT_ID cd /scratch/project/PROJECT_ID/ || exit @@ -98,15 +95,15 @@ Starting a COMSOL server on a compute node and then connecting to it through a C You may be prompted to provide username and password. These can be different from your IT4Innovations credentials, and will be used during the authentication when trying to connect to the server from GUI. ```bash -$ qsub -q qexp -l select=1:mpiprocs=36:ompthreads=1 -I -qsub: waiting for job 613121.isrv1 to start -qsub: job 613121.isrv1 ready +$ salloc -A PROJECT_ID -p qcpu_exp --nodes=1 --ntasks=36 --cpus-per-task=1 +salloc: Granted job allocation 694746 +salloc: Waiting for resource configuration +salloc: Nodes cn58 are ready for job $ ml COMSOL/5.2.0-COM $ comsol server COMSOL 5.2 (Build: 166) Multiphysics Server started listening on port 2036 Use the console command 'close' to exit the program - ``` After that, start your COMSOL Desktop GUI session and fill required information under `File -> Client Server -> Connect to Server`, where server will be the node where COMSOL server is running. Once you are done, your computational tasks will be offloaded to the COMSOL server. @@ -118,21 +115,21 @@ COMSOL is a software package for the numerical solution of partial differential LiveLink for MATLAB is available in both **EDU** and **COM** **variant** of the COMSOL release. On the clusters there is 1 commercial (**COM**) and 5 educational (**EDU**) licenses of LiveLink for MATLAB (see the [ISV Licenses][3]). The following example shows how to start COMSOL model from MATLAB via LiveLink in the interactive mode. ```console -$ qsub -I -X -A PROJECT_ID -q qexp -l select=1:ncpus=128:mpiprocs=128 +salloc -A PROJECT_ID -p qcpu_exp --nodes=1 --ntasks=128 --cpus-per-task=1 --x11 $ ml <matlab_module> and <comsol_module> $ comsol -3drend sw server MATLAB ``` On the first start of the LiveLink for MATLAB (client-MATLAB/server-COMSOL connection), the login and password is requested; this information is not requested again. -To run LiveLink for MATLAB in batch mode with (comsol_matlab.pbs) job script, you can utilize/modify the following script and execute it via the `qsub` command. +To run LiveLink for MATLAB in batch mode with (comsol_matlab.pbs) job script, you can utilize/modify the following script and execute it via the `salloc` command. ```bash #!/bin/bash -#PBS -l select=3:ncpus=128:mpiprocs=128 -#PBS -q qprod -#PBS -N JOB_NAME -#PBS -A PROJECT_ID +#SBATCH --nodes=3 --ntasks-per-node=128 --cpus-per-task=1 +#SBATCH -p qcpu +#SBATCH -N JOB_NAME +#SBATCH -A PROJECT_ID cd /scratch/project/PROJECT_ID || exit