我要评分
获取效率
正确性
完整性
易理解

Installing SMOKE

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to go to the directory:
    cd $SMK_HOME/subsys/smoke/assigns/
  3. Run the following command to modify the ASSIGNS.nctox.cmaq.cb05_soa.us12-nc file:
    1. Open the ASSIGNS.nctox.cmaq.cb05_soa.us12-nc file.
      vi ASSIGNS.nctox.cmaq.cb05_soa.us12-nc
    2. Press i to enter the insert mode and modify line 25 as follows:
      setenv BIN   Linux2_aarch64gfort
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Run the following command to modify the Makeinclude file:
    1. Open Makeinclude.
      cd $SMK_HOME/subsys/smoke/src
      vi Makeinclude
    2. 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
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Run the following command to modify the biog/normbeis361.f file:
    1. Open biog/normbeis361.f.
      vi biog/normbeis361.f
    2. 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.
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Run the following command to modify the smkinven/rdinvsrcs.f file:
    1. Open smkinven/rdinvsrcs.f.
      vi smkinven/ rdinvsrcs.f
    2. Press i to enter the insert mode and change the type of the GETPID function in line 86 from EXTERNAL to INTRINSIC.
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  7. Run the following command to modify the emutil/gentpro.f file:
    1. Open emutil/gentpro.f.
      vi emutil/gentpro.f
    2. 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 )
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  8. Run the following command to create a directory:
    mkdir ${SMK_HOME}/subsys/smoke/${BIN}
  9. Run the following commands to perform the compilation:
    source /path/to/SMOKE/subsys/smoke/assigns/ASSIGNS.nctox.cmaq.cb05_soa.us12-nc
    make