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 452 for trunk/UTIL – NEMO

Changeset 452 for trunk/UTIL


Ignore:
Timestamp:
2006-04-28T15:06:17+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_compil_016:RB: update fait_AA_make

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/fait_AA_make

    r437 r452  
    5959      @if [ ! -d ../../../lib/oce ] ; then mkdir ../../../lib/oce ; fi 
    6060 
    61 \$(EXEC_BIN) : libioipsl key keyverif src_file_list libagrif \$(MODEL_LIB) \$(IOIPSL_LIB) \$(AGRIF_LIB) agrif2model.o model.o 
     61\$(EXEC_BIN) : libioipsl firstagrif mpiagrif key keyverif src_file_list libagrif \$(MODEL_LIB) \$(IOIPSL_LIB) \$(AGRIF_LIB) agrif2model.o model.o 
    6262ifeq (\$(AGRIF),use) 
    6363      \$(F_L) \$(L_X) -o \$(EXEC_BIN) model.o agrif2model.o \$(SXMODEL_LIB) \$(OASISMPI2_LIB) \$(IOIPSL_LIB) \$(AGRIF_LIB) \$(NCDF_LIB) \$(LIBMPI) \$(LIBMP) 
     
    562562#- 
    563563#- Write some special rules --- 
     564echo '# agrif previous use' 
     565echo "firstagrif:" 
     566echo "ifeq (\$(AGRIF),use)" 
     567echo '   @if [ -z "`cat KEY_CPP | grep key_agrif`" ]; then $(RM) model.o $(MODDIR)/oce/*.mod $(MODEL_LIB) $(SXMODEL_LIB); fi' 
     568echo "else" 
     569echo '   @if [ -n "`cat KEY_CPP | grep key_agrif`" ]; then $(RM) -r OPAFILES model.o $(MODDIR)/oce/*.mod $(MODEL_LIB) $(SXMODEL_LIB); fi' 
     570echo "endif" 
     571#- 
     572echo '#- RB : this rule is a pretty miserable trick to be able to re-compile NEMP-AGRIF-mono after NEMO-AGRIF-mpp' 
     573echo '#- I guess the good correction should be in AGRIF/LIB/toamr.c for the conv, to remove useless allocation declarations in AGRIF_INC' 
     574echo '# recompile all in this case'  
     575echo "mpiagrif:" 
     576echo "ifeq (\$(AGRIF),use)" 
     577echo "ifeq (,\$(AGRIF_MPI))" 
     578echo '   @if [ -n "`cat KEY_CPP | grep key_mpp_mpi`" ]; then $(RM) -r OPAFILES model.o $(MODDIR)/oce/*.mod $(MODEL_LIB) $(SXMODEL_LIB); fi' 
     579echo "endif" 
     580echo "endif" 
     581#- 
    564582echo '# key changing control' 
    565583echo "key: " 
Note: See TracChangeset for help on using the changeset viewer.