Skip to content

Commit

Permalink
Doc:added documentation for SMOKE
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanHerrera8 committed Aug 24, 2023
1 parent 63ae95d commit e2257ec
Showing 1 changed file with 35 additions and 11 deletions.
46 changes: 35 additions & 11 deletions docs/source/software/applications/SMOKE/4.8.1/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ Set your SMK_HOME directory for the installation and load libraries.
setenv SMK_HOME $cwd
$ module load gcc/9.3.0
$ module load mpich/3.4.2_gcc-9.3.0
$ module load zlib/1.2.11_gcc-9.3.0
$ module load curl/7.77.0_gcc-9.3.0
$ module load netcdf-fortran/4.5.3_gcc-9.3.0_disable-netcdf-4
module load gcc/9.3.0
module load mpich/3.4.2_gcc-9.3.0
module load zlib/1.2.11_gcc-9.3.0
module load curl/7.77.0_gcc-9.3.0
module load netcdf-fortran/4.5.3_gcc-9.3.0_disable-netcdf-4
unzip all files with the provided script.

.. code-block:: tcsh
source smoke_install.csh
source smoke_install_v481.csh
The script will point the possible problems that may arise.

Expand All @@ -86,19 +86,24 @@ Create the ioapi folder to make the symbolic link to the already compiled ioapi.
cd ioapi/ioapi
ln -s <ioapi_path>/* .
ln -s /home/<user>/ioapi/ioapi/* .
After linking the ioapi folder, we need to link all the files in the lib
folder to the Linux2_x86_64gfort folder.
After linking the ioapi folder, we need to link all the files in the Linux2_x86_64gfort folder.

.. code-block:: tcsh
cd <ioapi_path>/Linux2_x86_64gfort
mkdir $SMK_HOME/subsys/ioapi/Linux2_x86_64gfort/
ln -s <ioapi_path>/lib/* .
cd $SMK_HOME/subsys/ioapi/Linux2_x86_64gfort/
ln -s /home/<user>/ioapi/Linux2_x86_64gfort/* .
After creating the links change the line 25 in of the file in the following path $SMK_HOME/subsys/smoke/assigns/ASSIGNS.nctox.cmaq.cb05_soa.us12-nc

.. code-block:: tcsh
vim $SMK_HOME/subsys/smoke/assigns/ASSIGNS.nctox.cmaq.cb05_soa.us12-nc
Change

.. code-block:: tcsh
Expand All @@ -113,10 +118,29 @@ to
so that the compilation uses the gfort compiler.

.. code-block:: tcsh
cd $SMK_HOME/subsys/smoke/assigns/
source ASSIGNS.nctox.cmaq.cb05_soa.us12-nc
Now we need to go to the build directory, open the Makeinclude file, comment lines 48 and 53, and uncomment lines 49 and 54

.. code-block:: tcsh
vim $SMK_HOME/subsys/smoke/src/Makeinclude
After that, compile.

.. code-block:: tcsh
cd $SMK_HOME/subsys/smoke/src
make
If everything is correctly configured and the necessary modules are loaded you will get two types of errors

1. error: enclosing 'parallel'; With this error you should enter in the file where the error has occurred and before the error line, you should comment the line where it says default none with 'c...............'.
2. error:can't convert CHARACTER(1) TO INTEGER(4) at (1); in the error line where it says LFIP = '' change the quotation marks by a zero.

After correcting the errors all executables should be created, and the compilation should be complete.

0 comments on commit e2257ec

Please sign in to comment.