Changeset 3475 for trunk/LMDZ.COMMON


Ignore:
Timestamp:
Oct 24, 2024, 1:10:48 PM (4 weeks ago)
Author:
afalco
Message:

compilation: SUFF_DIR != SUFF_NAME
to distinguish the compilation folder from the executable name.
SUFF_DIR not empty when compiling in libphy mode (was creating a bug when compiling dynamico, by mixing multiple physics together).
AF

Location:
trunk/LMDZ.COMMON
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/bld.cfg

    r3471 r3475  
    1616inc config.fcm
    1717
    18 %CONFIG_NAME       %{ARCH}%{SUFF_NAME}%{SUFF_DEBUG}
     18%CONFIG_NAME       %{ARCH}%{SUFF_DIR}
    1919%BASE_CONFIG_PATH  %LIBO/%CONFIG_NAME
    2020%CONFIG_PATH       %BASE_CONFIG_PATH/.config
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r3471 r3475  
    731731  SUFF_NAME=${SUFF_NAME}_inca
    732732fi
    733 SUFF_DEBUG=
     733SUFF_DIR=
    734734if [[ "$compil_mod" == "debug" ]]
    735735then
    736   SUFF_DEBUG=_debug
    737 fi
     736  SUFF_DIR=_debug
     737fi
     738SUFF_DIR=${SUFF_NAME}
    738739
    739740if [[ $libphy == "true" ]]
     
    783784echo "%EXEC          $code"          >> $config_fcm
    784785echo "%SUFF_NAME     $SUFF_NAME"     >> $config_fcm
    785 echo "%SUFF_DEBUG    $SUFF_DEBUG"    >> $config_fcm
     786echo "%SUFF_DIR      $SUFF_DIR"      >> $config_fcm
    786787echo "%COMPIL_FFLAGS $COMPIL_FFLAGS" >> $config_fcm
    787788echo "%PARA_FFLAGS   $PARA_FFLAGS"   >> $config_fcm
     
    801802
    802803# cleanup before compiling
    803 rm -f bin/${code}${SUFF_NAME}.e
     804rm -f bin/${code}${SUFF_NAME}
    804805rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock
    805806./build_gcm ${fcm_path} -j $job $full
Note: See TracChangeset for help on using the changeset viewer.