New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
user/flavoni/libIGCM_v3.4 – NEMO
wiki:user/flavoni/libIGCM_v3.4

Version 3 (modified by flavoni, 11 years ago) (diff)

--

TOC(heading=Using libIGCM library with ORCA2_LIM nemo_v3_4, depth=2, libIGCM/setupsimupage, libIGCM/change_BC, libIGCM/postprocessingpage, libIGCM/postalreadyrunpage, libIGCM_nemo_v_3_4/parallelpage_3_4, libIGCM/common_account, libIGCM/suggestpage, libIGCM/appendixpage )?

Using libIGCM library with ORCA2_LIM for nemo_v3_4

Purposes

  • Document the using of Libigcm for NEMO version 3_4, in configuration ORCA2_LIM
  • Official documentation of Libigcm is :

http://forge.ipsl.jussieu.fr/igcmg/wiki/platform/documentation

Quick start guide : downloading nemo_3_4

downloading NEMO v3_4 default configuration is:
climatological run, with bulk core forcing, focring files COREII,
with calendar type noleap
and ocean output frequency 1Y,1M,5D,1D, ice output frequency 5D,
with iom_put, (with an example of iodef.xml file),
without MONITORING, and ATLAS. 

  • Define the following alias to use SVN : 
     alias svn_ano='svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl'
    
    
  • Create and go into working directory : 
     mkdir TRY ; cd TRY
    
    
  • Extract modipsl : 
     svn_ano 
    
  • Extract NEMOGCM :   (verify NEMOGCM definition in mod.def file)
     cd modipsl/util 
     ./model NEMOGCM
    
  • Choose and compile configuration (for example if you run ORCA2_LIM configuration on "ada" machine at idris) :
     cd NEMOGCM/CONFIG
     ./makenemo -m x3750_ADA -n ORCA2_LIM
    
       (executable is created in ORCA2_LIM/BLD/bin directory)
    

Using ./makenemo -h to see help ( to see list of compilers availables, to see options,...) NOTE: IF YOU WANT TO COMPILE NEMO code that is not the NEMO directory, you can put you your NEMO code into (for example) MY_NEMO and compile it in this way

cp /PATH/YOUR_NEMO_DIR  NEMOGCM/MY_NEMO

cd NEMOGCM/CONFIG
 ./makenemo -n ORCA2_LIM -s MY_NEMO -m x3750_ADA -j0

 -j0 option create only configuration directory but does not compile it

========

  • Create PARAM directory for ORCA2_LIM configuration :
     cp -R ORCA2_LIM/EXP00 ORCA2_LIM/IGCM00/PARAM
    
  • Download Libigcm in EXTERNAL directory :
     cd ../EXTERNAL
     svn co http://forge.ipsl.jussieu.fr/libigcm/svn/tags/libIGCM_v1_9 libIGCM
     svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk/util
    
  • Change PATH in ins_job script :
     vi util/ins_job ; line 106
     replace  for i in $(find ${d_n}/.. -name ${F_CFG} -print)
     by       for i in $(find ${d_n}/../.. -name ${F_CFG} -print)
    
  • Create bin in EXTERNAL directory, and create link to nemo.exe :
     mkdir bin 
     cd bin 
     ln -s ../../CONFIG/ORCA2_LIM/BLD/bin/nemo.exe nemo.exe
     (because libIGCM looks for executable in ${MODIPSL}/bin ; in our case ${MODIPSL}=EXTERNAL/)
    

Editing at this point NEMOGCM/CONFIG/ORCA2_LIM/IGCM00/config.card
Editing at this point NEMOGCM/CONFIG/ORCA2_LIM/IGCM00/COMP/opa9.card
Editing at this point NEMOGCM/CONFIG/ORCA2_LIM/IGCM00/COMP/lim2.card
see : setupsimupage

  • Submit Job :
     ./util/ins_job
     cd ../CONFIG/ORCA2_LIM/IGCM00 
     qsub Job_Name
    

And also see useful remarks: suggestpage

If you want to switch from climatological to interannual see: change_BC

Simona Flavoni last update: Timestamp?