Ignore:
Timestamp:
09/21/18 00:59:11 (6 years ago)
Author:
dubos
Message:

devel/IRENE : use AVX512 in dynamics and AVX elsewhere ; fixes mass convervation issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/make_icosa

    r730 r738  
    9696mkdir .void_dir 
    9797 
     98function link_if_exists() 
     99{ 
     100  suffix=$1 
     101  if test -f $arch_path/arch-${arch}.${suffix} 
     102  then 
     103    ln -s $arch_path/arch-${arch}.${suffix} arch.${suffix} 
     104  elif test -f $arch_default_path/arch-${arch}.${suffix} 
     105  then 
     106    ln -s $arch_default_path/arch-${arch}.${suffix} arch.${suffix} 
     107  fi 
     108         
     109} 
     110 
    98111if [[ "$arch_defined" == "TRUE" ]] 
    99112then 
     
    101114  rm -f arch.fcm 
    102115  rm -f arch.env 
    103  
    104   if test -f $arch_path/arch-${arch}.path 
    105   then 
    106     ln -s $arch_path/arch-${arch}.path arch.path 
    107   elif test -f $arch_default_path/arch-${arch}.path 
    108   then 
    109     ln -s $arch_default_path/arch-${arch}.path arch.path 
    110   fi 
    111          
    112   if test -f $arch_path/arch-${arch}.fcm 
    113   then 
    114     ln -s $arch_path/arch-${arch}.fcm arch.fcm 
    115   elif test -f $arch_default_path/arch-${arch}.fcm 
    116   then 
    117     ln -s $arch_default_path/arch-${arch}.fcm arch.fcm 
    118   fi 
    119  
    120   if test -f $arch_path/arch-${arch}.env 
    121   then 
    122     ln -s $arch_path/arch-${arch}.env arch.env 
    123   elif test -f $arch_default_path/arch-${arch}.env 
    124   then 
    125     ln -s $arch_default_path/arch-${arch}.env arch.env 
    126   else 
    127     ln -s .void_file arch.env 
    128   fi 
     116   
     117  for suffix in env path fcm opt ; do link_if_exists $suffix ; done 
     118 
    129119  source arch.env 
    130120  source arch.path 
     121 
    131122else 
    132123  echo "Veuillez definir une architecture cible" 
     
    135126 
    136127LD_FLAGS="%BASE_LD" 
    137  
    138 if [[ "$compil_mode" == "prod" ]] 
    139 then 
    140   COMPIL_FFLAGS="%PROD_FFLAGS" 
    141 elif [[ "$compil_mode" == "dev" ]] 
    142 then 
    143   COMPIL_FFLAGS="%DEV_FFLAGS" 
    144 elif [[ "$compil_mode" == "debug" ]] 
    145 then 
    146   COMPIL_FFLAGS="%DEBUG_FFLAGS" 
    147 fi 
     128COMPIL_FFLAGS="" 
    148129 
    149130if [[ "$parallel" == "mpi" ]] 
     
    210191fi 
    211192 
     193if [[ "$compil_mode" == "prod" ]] 
     194then 
     195  HOPT_FFLAGS="%FAST_FFLAGS $COMPIL_FFLAGS" 
     196  COMPIL_FFLAGS="%PROD_FFLAGS $COMPIL_FFLAGS" 
     197elif [[ "$compil_mode" == "dev" ]] 
     198then 
     199  COMPIL_FFLAGS="%DEV_FFLAGS $COMPIL_FFLAGS" 
     200  HOPT_FFLAGS=$COMPIL_FFLAGS 
     201elif [[ "$compil_mode" == "debug" ]] 
     202then 
     203  COMPIL_FFLAGS="%DEBUG_FFLAGS $COMPIL_FFLAGS" 
     204  HOPT_FFLAGS=$COMPIL_FFLAGS 
     205fi 
     206 
    212207rm -f config.fcm 
    213208 
    214209echo "%COMPIL_FFLAGS $COMPIL_FFLAGS" >> config.fcm 
     210echo "%HOPT_FFLAGS $HOPT_FFLAGS" >> config.fcm 
    215211echo "%LD_FLAGS $LD_FLAGS" >> config.fcm 
    216212echo "%CPP_KEY $CPP_KEY" >> config.fcm 
Note: See TracChangeset for help on using the changeset viewer.