Changeset 5731 for LMDZ6/branches/LMDZ_compilation/makelmdz_fcm
- Timestamp:
- Jul 1, 2025, 11:53:15 AM (9 months ago)
- File:
-
- 1 edited
-
LMDZ6/branches/LMDZ_compilation/makelmdz_fcm (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/LMDZ_compilation/makelmdz_fcm
r5726 r5731 131 131 [-arch_path path] : path to architecture files (default: $arch_default_path) 132 132 [-force_compile] : recompile although there seems to be an on-going compilation 133 [-dir] : build directory (default: libo in current directory) 134 [-config] : config name (default: automatic creation of name based on other options of makelmdz_fcm) 133 135 -arch nom_arch : target architecture 134 136 exec : executable to build … … 139 141 dim=$2 ; shift ; shift ;; 140 142 143 "-dir") 144 LIBOGCM=$2 ; shift ; shift ;; 145 146 "-config") 147 config_name=$2 ; shift ; shift ;; 148 141 149 "-p") 142 150 physique="$2" ; shift ; shift ;; … … 493 501 fi 494 502 495 INCLUDE="$INCLUDE ${NETCDF95_INCDIR}"496 LIB="$LIB ${NETCDF95_LIBDIR} ${NETCDF95_LIB}"497 498 503 if [[ $io == ioipsl ]] 499 504 then … … 734 739 rm -f $config_fcm 735 740 touch $config_fcm 736 if [ ! X"${code}${SUFF_NAME}" == X ] ; then737 rm -f bin/${code}${SUFF_NAME}738 fi739 rm -f bin/${code}.e740 741 rm -f arch.fcm 741 742 rm -f arch.opt 743 config_name=${config_name:-$arch$SUFF_NAME} 744 745 if [[ -f $LIBOGCM/$config_name/config_description.txt ]] 746 then 747 read <$LIBOGCM/$config_name/config_description.txt 748 749 if [[ $REPLY != $SUFF_NAME ]] 750 then 751 echo "Configuration directory was created for other options" 752 rm -f $LIBFGCM/grid/dimensions_mod.f90 753 exit 1 754 fi 755 fi 742 756 743 757 echo "%ARCH $arch" >> $config_fcm 758 echo "%CONFIG_NAME $config_name" >> $config_fcm 744 759 echo "%INCDIR $INCLUDE" >> $config_fcm 745 760 echo "%LIB $LIB" >> $config_fcm … … 762 777 echo "%CPP_KEY $CPP_KEY" >> $config_fcm 763 778 echo "%EXEC $code" >> $config_fcm 764 echo "%SUFF_NAME $SUFF_NAME" >> $config_fcm765 779 echo "%COMPIL_FFLAGS $COMPIL_FFLAGS" >> $config_fcm 766 780 echo "%PARA_FFLAGS $PARA_FFLAGS" >> $config_fcm … … 785 799 set +e 786 800 787 rm -f $LIBOGCM/${ arch}${SUFF_NAME}/.config/fcm.bld.lock801 rm -f $LIBOGCM/${config_name}/.config/fcm.bld.lock 788 802 ./build_gcm ${fcm_path} -j $job $full 789 803 build_status=$? 790 804 791 rm -rf tmp_src792 rm -rf config793 ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config config794 ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config/ppsrc tmp_src795 796 805 if [[ -r $LIBFGCM/grid/dimensions_mod.f90 ]] 797 806 then … … 800 809 fi 801 810 802 # build netcdf95 library necessary for the makelmdz script 803 if [[ $build_status = 0 ]] 804 then 805 cp bin/${code}${SUFF_NAME} bin/${code}.e 806 if [[ ! -d tools/netcdf95/include ]] 807 then 808 mkdir tools/netcdf95/include tools/netcdf95/lib 809 cp config/inc/netcdf95.mod config/inc/nf95_*mod tools/netcdf95/include 810 cp config/obj/netcdf95.o config/obj/nf95_*o config/obj/check_start_count_m.o tools/netcdf95/lib 811 cd tools/netcdf95/lib; ar rv libnetcdf95.a *.o; ranlib libnetcdf95.a 812 cd - 813 fi 811 if [[ ! -f $LIBOGCM/$config_name/config_description.txt ]] 812 then 813 echo $SUFF_NAME >$LIBOGCM/$config_name/config_description.txt 814 814 fi 815 815
Note: See TracChangeset
for help on using the changeset viewer.
