Ignore:
Timestamp:
Feb 9, 2025, 6:48:58 PM (37 hours ago)
Author:
fhourdin
Message:

Rephasage makelmdz/create_make_gcm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/create_make_gcm

    r5261 r5528  
    1 #!/bin/sh
     1#!/bin/bash
    22#
    33# $Id$
    44#
    55#set -xv
    6 
    7 # arguments given to create_make_gcm are the directories to scan
    8 src_dirs=$*
    96
    107machine=`hostname`
     
    1512libf=$gcm/libf
    1613libo=$gcm/libo
     14
     15# arguments given to create_make_gcm are the directories to scan
     16src_dirs=""
     17for d in $* ; do if [ -d $libf/$d ] ; then src_dirs="$src_dirs $d" ; fi ; done
     18
     19echo '# List of scanned directories :' $src_dirs
     20
     21# Pour l'inclusion des modules dans dynphy_lonlat/phy*
     22# TBD : integrer la gestion dans create_make_gcm des options pour l'instant gérées dans makelmdz
     23for d in $src_dirs ; do if [ ${d:0:3} = phy -a $d != phy_common ] ; then phys=$( echo $d | cut -d/ -f1 ) ; fi ; done
     24#for d in $src_dirs ; do echo hm $d ; done
     25
     26
     27
     28
    1729CRAY=0
    1830if [ "$machine" = "atlas" -o "$machine" = "etoile" -o "$machine" = "axis" ] ; then
     
    6274echo
    6375echo '# Les differentes librairies pour l"edition des liens:'
    64 echo 'L_DYN      = -ldyn$(DIM)d$(FLAG_PARA) -ldyn3d_common'
     76echo 'L_DYN      = -ldyn$(DIM)d$(FLAG_PARA) -ldyn3d_common -lgrid'
    6577echo 'L_FILTRE   = -l$(FILTRE)'
    6678echo 'L_DYN_PHY = -ldynlmdz_phy$(PHYS) '
     
    183195# ou quelque chose du genre.
    184196##########################################################################
     197dirs_inc=""
     198for d in $phys/dyn1d dynphy_lonlat/$phys $src_dirs ; do if [ -d $d ] ; then dirs_inc="$dirs_inc $d" ; fi ; done
     199echo '# List of scanned directories for include files and modules :' $dirs_inc
    185200
    186201         for stri in ` ( sed -e '/^[cC\!]/d' $trufile | sed -e "/\#include /s/\#include /XXnclude /" -e "/include /s/include /XXnclude /" -e "/INCLUDE /s/INCLUDE /XXnclude /" | sed -n "/XXnclude /s/XXnclude//p" | sed 's/\"//g' | sort | uniq ; sed -e '/^[cC\!]/d' $trufile | egrep -i '^ *use ' | sed -e 's/,/ /' | awk ' { print $2 } ' | sort | uniq ) ` ; do
     
    188203            strj=`echo $stri | tr [A-Z] [a-z]`
    189204            str2=""
    190             for dirinc in $src_dirs ; do
     205            #echo $dirs_inc
     206            for dirinc in $dirs_inc ; do
    191207# Recherche dans l'ordre hierarchique inverse car seule la derniere
    192208# ligne est conservee
Note: See TracChangeset for help on using the changeset viewer.