Changeset 375


Ignore:
Timestamp:
Nov 10, 2011, 4:11:18 PM (13 years ago)
Author:
emillour
Message:

Generic GCM: Upgrade of the 'create_make_gcm' script: objects are removed from the libraries before compilation, which enforces that the gcm will fail to compile if any routine failed to compile.
Get rid of 'tmp' file; it has nothing to do in the svn repository.
EM

Location:
trunk/LMDZ.GENERIC
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/README

    r374 r375  
    546546  "datafile.h" into a F90 module "datafile_mod.F90" and spread this change
    547547  to all routines that used to use "datafile.h".
     548
     549== 10/11/2011 == EM
     550- Upgrade of the 'create_make_gcm' script: objects are removed from the
     551  libraries before compilation, which enforces that the gcm will fail to
     552  compile if any routine failed to compile.
  • trunk/LMDZ.GENERIC/create_make_gcm

    r302 r375  
    222222         done
    223223         echo $str1
     224         # Compile in LOCAL_DIR directory, and before compiling,
     225         # remove the object from the library
     226         echo ' cd $(LOCAL_DIR); \'
     227         echo ' $(AR) d $(LIBO)/lib'$diri'.a '$fili'.o ; \'
    224228         if [ "$F90" -eq '0' ] ; then
    225            echo '       cd $(LOCAL_DIR); \'
    226            echo '       $(COMPILE) $(LIBF)/'$diri'/'$trufile' ; \'
     229         ## Fixed Form Fortran 77
     230           echo '       $(COMPILE) $(LIBF)/'$diri'/'$trufile' ; \'
    227231         else
    228            echo '       cd $(LOCAL_DIR); \'
     232         ## Fortran 90
    229233           if [ -f $fili.F90 ] ; then
    230               echo '    $(COMPTRU90) $(LIBF)/'$diri'/'$trufile' ; \'
     234           ## Free Form Fortran 90
     235              echo '    $(COMPTRU90) $(LIBF)/'$diri'/'$trufile' ; \'
    231236           else
    232               echo '    $(COMPILE90) $(LIBF)/'$diri'/'$trufile' ; \'
     237           ## Fixed Form Fortran 90
     238              echo '    $(COMPILE90) $(LIBF)/'$diri'/'$trufile' ; \'
    233239           fi
    234240           MODU=0; egrep -i '^ *module ' $trufile> /dev/null 2>&1 && MODU=1
     
    245251           echo '       sxar r $(LIBO)/libsx'$diri'.a '$fili'.o ; \'
    246252         fi
     253         # Put generated object in library
    247254         echo ' $(AR) r $(LIBO)/lib'$diri'.a '$fili'.o ; $(RM) '$fili'.o ; \'
    248255         echo ' cd $(GCM)'
Note: See TracChangeset for help on using the changeset viewer.