Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RODIER Quentin
Méso-NH code
Commits
2eab6e92
Commit
2eab6e92
authored
8 years ago
by
Gaelle TANGUY
Browse files
Options
Downloads
Patches
Plain Diff
Gaelle 23/06/2016 : surfex V8
parent
cd49a0dd
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/Fortran90_stuff_interface.pm
+25
-8
25 additions, 8 deletions
bin/Fortran90_stuff_interface.pm
bin/make_intfbl_f90.pl
+1
-1
1 addition, 1 deletion
bin/make_intfbl_f90.pl
bin/spll
+4
-4
4 additions, 4 deletions
bin/spll
with
30 additions
and
13 deletions
bin/Fortran90_stuff_interface.pm
+
25
−
8
View file @
2eab6e92
...
...
@@ -97,8 +97,6 @@ sub study{
$href
->
{
indent
}
=
"
";
}
if
(
$type_def
)
{
# $href->{content}='typedef';
}
...
...
@@ -326,7 +324,7 @@ CRACK: {
$exec
=
0
;
$decl
=
1
;
}
#print "cont $content \n \n";
#print
STDERR
"cont $content \n \n";
# print "BB $unit_count $content $_";
if
(
$content
eq
'
unknown
')
{
print
STDERR
"
Failed to crack statement starting at line
$href
->{first_line}
",
...
...
@@ -577,18 +575,37 @@ sub study_exec{
elsif
(
/^$name\s*%\s*$name\s*=/o
)
{
#ZMYTYPE%ICOMP = .....
$$content
=
'
scal_assign
';
}
elsif
(
/^$name\s*%\s*$name\s*%\s*$name\s*=/o
)
{
#ZMYTYPE%ICOMP = .....
$$content
=
'
scal_assign
';
}
elsif
(
/^$name\s*%\s*$name\s*%\s*$name\s*%\s*$name\s*=/o
)
{
#ZMYTYPE%ICOMP = .....
$$content
=
'
scal_assign
';
}
elsif
(
/^$name\s*%\s*$name\s*%\s*$name\s*%\s*$name\s*%\s*$name\s*=/o
)
{
#ZMYTYPE%ICOMP = .....
$$content
=
'
scal_assign
';
}
elsif
(
/^$name\s*$nest_par\s*%\s*$name\s*=/o
)
{
#ZMYTYPE(JK)%ICOMP = .....
$$content
=
'
array_assign
';
}
elsif
(
/^$name\s*%\s*$name\s*$nest_par\s*=/o
)
{
#ZMYTYPE%ICOMP(JL) = .....
$$content
=
'
array_assign
';
}
elsif
(
/^$name\s*%\s*$name\s*%\s*$name\s*$nest_par\s*=/o
)
{
#ZMYTYPE%ICOMP(JL) = .....
$$content
=
'
array_assign
';
}
elsif
(
/^$name\s*%\s*$name\s*%\s*$name\s*%\s*$name\s*$nest_par\s*=/o
)
{
#ZMYTYPE%ICOMP(JL) = .....
$$content
=
'
array_assign
';
}
elsif
(
/^$name\s*%\s*$name\s*%\s*$name\s*%\s*$name\s*%\s*$name\s*$nest_par\s*=/o
)
{
#ZMYTYPE%ICOMP(JL) = .....
$$content
=
'
array_assign
';
}
elsif
(
/^($name\s*($nest_par)*\s*%\s*$name\s*($nest_par)* *)+=/o
)
{
#ZMYTYPE(JK)%ICOMP(JL) = ...
$$content
=
'
array_assign
';
}
elsif
(
/^$name\s*($nest_par)($nest_par)\s*=/o
)
{
#CLNAME(JK)(1:5) = ......
$$content
=
'
array_assign
';
}
}
}
#===================================================================================
#sub get_indent {
...
...
@@ -1839,13 +1856,13 @@ sub parse_prog_unit {
my
$tstatm
=
$_
;
$tstatm
=~
s/\!.*\n/\n/g
;
$tstatm
=~
s/\s//g
;
#print "ok1\n",$tstatm,"\n";
#print
STDERR
"ok1\n",$tstatm,"\n";
if
(
/.+\((.+)\).+\((.+)\)/
)
{
#print "block1\n";
#
print
STDERR
"block1\n";
$tstatm
=~
s/.+\((.+)\).+\((.+)\)/$1,$2/
;
}
else
{
# print "block2\n";
#
print
STDERR
"block2\n";
$tstatm
=~
s/.+\((.+)\)/$1/
;
}
# $tstatm=~s/.+\((.+)\)/$1/;
...
...
@@ -2169,7 +2186,7 @@ sub create_interface_block {
}
}
else
{
if
(
/^USEMODD_TYPE/
||
/^USEMODD_FMDECLAR/
)
{
if
(
/^USEMODD_TYPE/
||
/^USEMODD_FMDECLAR/
||
/^USELFI_/
)
{
push
(
@$interface_block
,
$myhref
);
# Always include USE without ONLY for safety
}
}}
...
...
This diff is collapsed.
Click to expand it.
bin/make_intfbl_f90.pl
+
1
−
1
View file @
2eab6e92
#!/usr/bin/perl
#!/usr/bin/
env
perl
#SURFEX_LIC Copyright 1994-2014 Meteo-France
#SURFEX_LIC This is part of the SURFEX software governed by the CeCILL-C licence
#SURFEX_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
...
...
This diff is collapsed.
Click to expand it.
bin/spll
+
4
−
4
View file @
2eab6e92
...
...
@@ -65,7 +65,7 @@ if [ "`echo $BASENAME | egrep -i $FILE_WITHOUT_INTERFACE_NEDEED `" = "" ]
then
for
sfile
in
`
cat
liste_file
`
do
if
[
"
`
egrep
-i
a
'^ *module|^ *program'
$sfile
`
"
=
""
]
if
[
"
`
egrep
-i
'^ *module|^ *program'
$sfile
`
"
=
""
]
then
if
[
"
$SUF
"
=
"f90"
]
then
...
...
@@ -91,7 +91,7 @@ then
fi
fi
ls
-1
$TMP
>
liste_file
egrep
-v
a
"liste_file"
liste_file
>
liste_file2
egrep
-v
"liste_file"
liste_file
>
liste_file2
)
#
# génération des dependances
...
...
@@ -133,8 +133,8 @@ then
cp
$spllfile
$DIRNAME
/
$spllfile
touch
$DIRNAME
/
$BASENAME2
.D
fi
dep
=
`
egrep
-i
a
"^[[:space:]]*use "
$spllfile
|
sed
-e
's/,/ /g'
|
awk
'{ print '
${
TOCASE
}
'($2)".mod"}'
|
sort
-u
`
mod
=
`
egrep
-i
a
"^[[:space:]]*module "
$spllfile
|
sed
-e
's/,/ /g'
|
awk
'{ print '
${
TOCASE
}
'($2)".mod"}'
|
sort
-u
|
grep
-iv
procedure
`
dep
=
`
egrep
-i
"^[[:space:]]*use "
$spllfile
|
sed
-e
's/,/ /g'
|
awk
'{ print '
${
TOCASE
}
'($2)".mod"}'
|
sort
-u
`
mod
=
`
egrep
-i
"^[[:space:]]*module "
$spllfile
|
sed
-e
's/,/ /g'
|
awk
'{ print '
${
TOCASE
}
'($2)".mod"}'
|
sort
-u
|
grep
-iv
procedure
`
echo
$mod
:
$spllbase
.o
>>
$DIRNAME
/
$BASENAME2
.D
echo
$spllbase
.o :
$spllfile
$dep
>>
$DIRNAME
/
$BASENAME2
.D
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment