Installing SMOKE
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to go to the directory:
cd $SMK_HOME/subsys/smoke/assigns/
- Run the following command to modify the ASSIGNS.nctox.cmaq.cb05_soa.us12-nc file:
- Open the ASSIGNS.nctox.cmaq.cb05_soa.us12-nc file.
vi ASSIGNS.nctox.cmaq.cb05_soa.us12-nc
- Press i to enter the insert mode and modify line 25 as follows:
setenv BIN Linux2_aarch64gfort
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the ASSIGNS.nctox.cmaq.cb05_soa.us12-nc file.
- Run the following command to modify the Makeinclude file:
- Open Makeinclude.
cd $SMK_HOME/subsys/smoke/src vi Makeinclude
- Press i to enter the insert mode and modify the file as follows:
INSTDIR = ${OBJDIR}/${BIN} #EFLAG = -extend-source 132 -zero EFLAG = -ffixed-line-length-132 -fno-backslash IOLIB = -L$(IOBIN) -lioapi -lnetcdf -lnetcdff - Press Esc, type :wq!, and press Enter to save the file and exit.
- Open Makeinclude.
- Run the following command to modify the biog/normbeis361.f file:
- Open biog/normbeis361.f.
vi biog/normbeis361.f
- Press i to enter the insert mode and change the types of the IS_AG and IS_TAG functions in line 161 from INTEGER to LOGICAL.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open biog/normbeis361.f.
- Run the following command to modify the smkinven/rdinvsrcs.f file:
- Open smkinven/rdinvsrcs.f.
vi smkinven/ rdinvsrcs.f
- Press i to enter the insert mode and change the type of the GETPID function in line 86 from EXTERNAL to INTRINSIC.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open smkinven/rdinvsrcs.f.
- Run the following command to modify the emutil/gentpro.f file:
- Open emutil/gentpro.f.
vi emutil/gentpro.f
- Press i to enter the insert mode and change the code in lines 1663 and 1695 as follows:
1663 (( PROF_MON( S,NP )), NP = 1,12 ) 1695 ( ( PROF_DAY( S,NP ) ), NP = 1,31 )
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open emutil/gentpro.f.
- Run the following command to create a directory:
mkdir ${SMK_HOME}/subsys/smoke/${BIN} - Run the following commands to perform the compilation:
source /path/to/SMOKE/subsys/smoke/assigns/ASSIGNS.nctox.cmaq.cb05_soa.us12-nc make
Parent topic: Compiling and Installing SMOKE