Skip to content
Snippets Groups Projects
Commit d920c13a authored by ESCOBAR MUNOZ Juan's avatar ESCOBAR MUNOZ Juan
Browse files

Juan 14/04/2025: spll_new, Correction for submodule dependencies on "father" module

parent 51fbe2d7
No related branches found
No related tags found
No related merge requests found
...@@ -147,7 +147,7 @@ echo "!depfile:$BASENAME2.D" > $spllfile ...@@ -147,7 +147,7 @@ echo "!depfile:$BASENAME2.D" > $spllfile
# #
# if splitted file differente of old one, update ... # if splitted file differente of old one, update ...
# #
#set -x
if [ "`diff $spllfile $DIRNAME/$spllfile 2>&1 `" != "" ] if [ "`diff $spllfile $DIRNAME/$spllfile 2>&1 `" != "" ]
then then
cp $spllfile $DIRNAME/$spllfile cp $spllfile $DIRNAME/$spllfile
...@@ -160,7 +160,7 @@ then ...@@ -160,7 +160,7 @@ then
mod=`egrep -i "^[[:space:]]*module " $spllfile | head -1 | sed -e 's/,/ /g' | awk '{ print '${TOCASE}'($2)".mod"}' | sort -u | grep -iv procedure ` mod=`egrep -i "^[[:space:]]*module " $spllfile | head -1 | sed -e 's/,/ /g' | awk '{ print '${TOCASE}'($2)".mod"}' | sort -u | grep -iv procedure `
else else
mod=${smod} mod=${smod}
sdep=`egrep -i "^[[:space:]]*submodule " $spllfile | head -1 | sed -e 's/,/ /g' | awk -F'[ ()]' '{ print '${TOCASE}'($3)".mod"}' | sort -u | grep -iv procedure ` sdep=`egrep -i "^[[:space:]]*submodule " $spllfile | head -1 | sed -e 's/[,()]/ /g' | awk '{ print '${TOCASE}'($2)".mod"}' | sort -u | grep -iv procedure `
dep="$dep $sdep" dep="$dep $sdep"
fi fi
inc=`egrep -i "^[[:space:]]*include " $spllfile | sed -e 's/"//g' | awk '{ print '${TOCASE}'($2)}' | sort -u | egrep -v 'mpif.h|netcdf.inc' ` inc=`egrep -i "^[[:space:]]*include " $spllfile | sed -e 's/"//g' | awk '{ print '${TOCASE}'($2)}' | sort -u | egrep -v 'mpif.h|netcdf.inc' `
...@@ -172,7 +172,7 @@ echo ${mod} : ${spllfile} ${dep} ${inc} >> $DIRNAME/$BASENAME2.D ...@@ -172,7 +172,7 @@ echo ${mod} : ${spllfile} ${dep} ${inc} >> $DIRNAME/$BASENAME2.D
else else
echo ${spllbase}.o : ${spllfile} ${dep} ${inc} >> $DIRNAME/$BASENAME2.D echo ${spllbase}.o : ${spllfile} ${dep} ${inc} >> $DIRNAME/$BASENAME2.D
fi fi
#set +x
if [ "$SUF" = "f90" ] if [ "$SUF" = "f90" ]
then then
echo " "' $(F90) -I$(OBJDIR)/MOD $(INC) -c $(F90FLAGS) $<' >> $DIRNAME/$BASENAME2.D echo " "' $(F90) -I$(OBJDIR)/MOD $(INC) -c $(F90FLAGS) $<' >> $DIRNAME/$BASENAME2.D
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment