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.
Changeset 1564 for trunk/NVTK/Makefile – NEMO

Changeset 1564 for trunk/NVTK/Makefile


Ignore:
Timestamp:
2009-07-31T14:31:31+02:00 (15 years ago)
Author:
ctlod
Message:

NVTK: improve it with new functionnality mainly for the developpers,see ticket: #506, #240

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NVTK/Makefile

    r1560 r1564  
    44# Contact : nemo_st@locean-ipsl.upmc.fr 
    55# 
    6 # VARS TO SET: 6 + 1 (optional) 
    7 #     - NAM_V      : name of the current test (associated to the same directory name) 
    8 #     - LISTE_CONF : configurations name (ORCA2_LIM, GYRE ...) 
    9 #     - JOBS_2LAUN : jobs to launch (nojob, all, long, short or gtime) 
    10 #     - BUILD_MAKE : run type (mon, mpi ... ) 
    11 #     - MAK_TIME   : to perform a CPU time measure making a one year run 
    12 #                    use key word 'timing' or 'notiming' 
    13 #     - MAK_MEMO   : to perform a memory check  
    14 #                    use key word 'memo' or 'nomemo' 
    15 #     - REF_TAGV   : (optional) reference tag name. If specified,  
    16 #                    current results will be compare to the results  
    17 #                    of this tag (for a given configuration and run type) 
     6# VARS TO SET: 9 + 1 (optional) 
     7#     - NAM_V             : name of the current test (associated to the same directory name) 
     8#     - LISTE_CONF        : configurations name (ORCA2_LIM, GYRE ...) 
     9#     - JOBS_2LAUN        : jobs to launch (nojob, all, long, short or gtime) 
     10#     - BUILD_MAKE        : run type (mon, mpi ... ) 
     11#     - MAK_TIME          : to perform a CPU time check use keyword: 'timing' or 'notiming' 
     12#     - USE_IOMPUT        : use or not the new I/O interface 
     13#     - USE_IOSERVER      : use the I/O interface using the server possibility 
     14#     - NB_PROCS_IOSERVER : number of processors dedicated to the I/O server 
     15#     - MAK_MEMO          : to perform a memory check use keyword: 'memo' or 'nomemo' 
     16#     - REF_TAGV          : (optional) tag/experience name. If specified,  
     17#                           current results will be compare to the results  
     18#                           of this tag/experience (for a given configuration and run type) 
    1819# 
    1920# WORK: Allows to launch all the validation process, i.e.  
    2021#     I.   to build dependencies use: > gmake -s dep 
    2122#     II.  to launch compilation,simulation,final report use: > gmake 
     23#     III. to remove NetCDF output files of the NAM_V experience use: > gmake delf 
    2224# 
    2325##################################################################### 
     
    4446NB_PROCS_IOSERVER = 1 
    4547#- 
    46 #- Proceed to a timing, use key word 'timing' or 'notiming' 
     48#- Proceed to a timing, use keyword: 'timing' or 'notiming' 
    4749MAK_TIME = notiming 
    4850#- 
    49 #- Proceed to a memory check, use key word 'memo' or 'nomemo' 
     51#- Proceed to a memory check, use keyword: 'memo' or 'nomemo' 
    5052MAK_MEMO = memo 
    5153#- 
    52 #- Reference Tag version 
    53 REF_TAGV = nemo_v2_3 
     54#- Experience name or reference Tag name (nemo_v2, nemo_v2_3 or nemo_v3) 
     55REF_TAGV = nemo_v3 
    5456#- 
    5557##################################################################### 
     
    7981   @( cd ${NAM_V} ; LSFILES=`( ls *.[Ffh]90 )` ; if [ -n "$$LSFILES" ] ; \ 
    8082     then echo $$LSFILES > ../../$@/f2test.txt ; else rm -f ../../$@/f2test.txt ; \ 
    81           touch ../../$@/f2test.txt ; fi ; ) 
     83          echo "  " >../../$@/f2test.txt ; fi ; ) 
    8284   @echo  
    8385   @echo '             ----->>>>>>>>>   Links from NVTK/'${NAM_V} ' to '$@/MY_SRC 'done' 
     
    8587   @echo '                              Build the Makefile for' $@ 'configuration' 
    8688   @../../util/ins_make -w $@ 
    87 ifeq ($(USE_IOMPUT),true) 
    88    @../../util/ins_make -w XMLF90 
    89    @../../util/ins_make -w XMLIO_SERVER 
    90 endif 
     89   @( cd ../$@/WORK ; grep P_P Makefile | head -1 > $$ ; LSCPPKEY=`( cut -c,6- $$ )` ; \ 
     90          rm -f $$ ; if [ -n "$$LSCPPKEY" ] ; then echo $$LSCPPKEY >> ../f2test.txt ; fi ; ) 
    9191   @echo 
    9292   @echo 
     
    199199   @echo  
    200200   @clear  
     201 
     202#- Delete NetCDF files for a given experience to save memory  
     203delf:  
     204   @for conf in ${LISTE_CONF}; do \ 
     205       echo ; \ 
     206       echo ; \ 
     207       echo ; \ 
     208       echo '             ----->>>>>>>>> Remove all' $$conf '*.nc output files for the' ${NAM_V} 'experience' ; \ 
     209       echo ; \ 
     210       echo ; \ 
     211       for typer in ${BUILD_MAKE}; do \ 
     212           rm -f DELFIL/NEMO_VALID/W$$conf/$$typer/LONG/${NAM_V}/*.nc     ; \ 
     213           rm -f DELFIL/NEMO_VALID/W$$conf/$$typer/1_SHORT/${NAM_V}/*.nc  ; \ 
     214           rm -f DELFIL/NEMO_VALID/W$$conf/$$typer/2_SHORT/${NAM_V}/*.nc  ; \ 
     215      rm -f DELFIL/NEMO_VALID/W$$conf/$$typer/GTIME/${NAM_V}/*.nc    ; \ 
     216       done ; \ 
     217   done  
Note: See TracChangeset for help on using the changeset viewer.