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/HEAD – NEMO

source: trunk/HEAD/Makefile @ 693

Last change on this file since 693 was 693, checked in by ctlod, 17 years ago

NVTK installation

  • Property svn:executable set to *
File size: 2.5 KB
Line 
1#####################################################################
2# Author : Claude Talandier for ESOPA
3# Contact : opatlod@locean-ipsl.upmc.fr
4#
5# INPUT ARGS: 3 + 1 (optional)
6#     - NAM_V      : name of the current test
7#     - LISTE_CONF : configurations name (ORCA2_LIM, GYRE ...)
8#     - BUILD_MAKE : run type (mon, mpi ... )
9#     - MAK_TIME   : to perform a CPU time measure making a one year run
10#                    use key word 'timing' or 'notiming'
11#     - REF_TAGV   : (optional) reference tag name. If specified,
12#                    current results will be compare to the results
13#                    of this tag (for a given configuration and run type)
14#
15# WORK: Allows to launch all the validation process, i.e.
16#     I.   compilations
17#     II.  simulations
18#     III. final report
19#
20#####################################################################
21SHELL = /bin/ksh
22#####################################################################
23##### Begin Users modifications
24#####################################################################
25#-
26#- Name of the test
27NAM_V = nemo_v2_3
28#-
29#- Configurations list which must be tested
30LISTE_CONF = GYRE ORCA2_LIM
31#-
32#- Compilation list type to perform, mon (mono) &/or mpi &/or omp (Open-MP)
33BUILD_MAKE =  mon mpi
34#-
35#- Proceed to a timing, use key word 'timing' or 'notiming'
36MAK_TIME = notiming
37#-
38#- Reference Tag version
39REF_TAGV = nemo_v2
40#-
41#####################################################################
42##### End Users modifications
43#####################################################################
44
45##
46all: $(LISTE_CONF)
47   @echo '      '
48   @echo '             ----->>>>>>>>>   Compilation process ended for configuration(s) :' $(LISTE_CONF)
49   @echo '      '
50
51#- Make good links & launch the compilation process
52$(LISTE_CONF):
53   @echo
54   @echo "CONFIGURATION :" $@
55   ( MYREP_LIST=`(cd 2TEST ; ls *.[Ffh]90 *.[Ffh])` ; \
56          cd ../$@/MY_SRC ; rm -rf *.[Ffh]90 ; if [ -n "$$MYREP_LIST" ] ; \
57        then ln -sf ../../HEAD/2TEST/*.[Ffh]90 . ; fi ; ) 
58   @echo "test=" $(NAM_V) > ../$@/specifs.txt
59   @echo "runs=" $(BUILD_MAKE) >> ../$@/specifs.txt
60   @echo "time=" $(MAK_TIME) >> ../$@/specifs.txt
61   @echo "tagname=" $(REF_TAGV) >> ../$@/specifs.txt
62   @echo
63   @echo '             ----->>>>>>>>>   Links from' $@/MY_SRC ' to HEAD/2TEST done'
64   @echo
65   @echo '                              Build the Makefile for' $@ 'configuration'
66   ../../util/ins_make -w $@
67   @echo
68   @echo
69   gmake -C ../$@ RUN='$(BUILD_MAKE)' RTG=$(REF_TAGV) MKTE=$(MAK_TIME) -j 2 > $@_step.txt
Note: See TracBrowser for help on using the repository browser.