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.
Makefile in trunk/NVTK – NEMO

source: trunk/NVTK/Makefile @ 1155

Last change on this file since 1155 was 1155, checked in by ctlod, 16 years ago

add svn Id

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 2.9 KB
RevLine 
[1154]1# $Id$
[693]2#####################################################################
3# Author : Claude Talandier for ESOPA
4# Contact : opatlod@locean-ipsl.upmc.fr
5#
[808]6# INPUT ARGS: 6 + 1 (optional)
[693]7#     - NAM_V      : name of the current test
8#     - LISTE_CONF : configurations name (ORCA2_LIM, GYRE ...)
[808]9#     - JOBS_2LAUN : jobs to launch (nojob, all, long, short or gtime)
[693]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'
[808]13#     - MAK_MEMO   : to perform a memory check
14#                    use key word 'memo' or 'nomemo'
[693]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)
18#
19# WORK: Allows to launch all the validation process, i.e.
20#     I.   compilations
21#     II.  simulations
22#     III. final report
23#
24#####################################################################
25SHELL = /bin/ksh
26#####################################################################
27##### Begin Users modifications
28#####################################################################
29#-
30#- Name of the test
[958]31NAM_V = nemo_v3
[693]32#-
33#- Configurations list which must be tested
[958]34LISTE_CONF = GYRE GYRE_LOBSTER ORCA2_LIM
[693]35#-
[808]36#- Jobs to launch use keyword: nojob, all, long, short or gtime
37JOBS_2LAUN = all
38#-
[693]39#- Compilation list type to perform, mon (mono) &/or mpi &/or omp (Open-MP)
40BUILD_MAKE =  mon mpi
41#-
42#- Proceed to a timing, use key word 'timing' or 'notiming'
43MAK_TIME = notiming
44#-
[808]45#- Proceed to a memory check, use key word 'memo' or 'nomemo'
[958]46MAK_MEMO = memo
[808]47#-
[693]48#- Reference Tag version
[958]49REF_TAGV = nemo_v2_3
[693]50#-
51#####################################################################
52##### End Users modifications
53#####################################################################
54
55##
56all: $(LISTE_CONF)
57   @echo '      '
58   @echo '             ----->>>>>>>>>   Compilation process ended for configuration(s) :' $(LISTE_CONF)
59   @echo '      '
60
61#- Make good links & launch the compilation process
62$(LISTE_CONF):
63   @echo
64   @echo "CONFIGURATION :" $@
65   ( MYREP_LIST=`(cd 2TEST ; ls *.[Ffh]90 *.[Ffh])` ; \
66          cd ../$@/MY_SRC ; rm -rf *.[Ffh]90 ; if [ -n "$$MYREP_LIST" ] ; \
[1140]67        then ln -sf ../../NVTK/2TEST/*.[Ffh]90 . ; fi ; ) 
[693]68   @echo "test=" $(NAM_V) > ../$@/specifs.txt
69   @echo "runs=" $(BUILD_MAKE) >> ../$@/specifs.txt
70   @echo "time=" $(MAK_TIME) >> ../$@/specifs.txt
[808]71   @echo "memo=" $(MAK_MEMO) >> ../$@/specifs.txt
[693]72   @echo "tagname=" $(REF_TAGV) >> ../$@/specifs.txt
73   @echo
[1140]74   @echo '             ----->>>>>>>>>   Links from' $@/MY_SRC ' to NVTK/2TEST done'
[693]75   @echo
76   @echo '                              Build the Makefile for' $@ 'configuration'
77   ../../util/ins_make -w $@
78   @echo
79   @echo
[808]80   gmake -C ../$@ RUN='$(BUILD_MAKE)' JOB=$(JOBS_2LAUN) RTG=$(REF_TAGV) MKTE=$(MAK_TIME) MKMO=$(MAK_MEMO) -j 2 > $@_step.txt
Note: See TracBrowser for help on using the repository browser.