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
6af44d39
Commit
6af44d39
authored
2 years ago
by
RIETTE Sébastien
Browse files
Options
Downloads
Patches
Plain Diff
S. Riette 21 sept 2022 small updates
parent
8c918bcb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/check_commit_ial.sh
+15
-4
15 additions, 4 deletions
tools/check_commit_ial.sh
tools/check_commit_mesonh.sh
+3
-1
3 additions, 1 deletion
tools/check_commit_mesonh.sh
with
18 additions
and
5 deletions
tools/check_commit_ial.sh
+
15
−
4
View file @
6af44d39
...
...
@@ -194,7 +194,6 @@ if [ $compilation -eq 1 ]; then
-f
$dirpack
/
\
-u
$name
reftree
=
'main'
subs
=
"-s gmkpack_ignored_files"
#This file contains the list of source code files to exclude from recompilation
else
#Create main pack
gmkpack
-a
-r
48t1
-b
${
packBranch
}
-n
01
-l
${
gmkpack_l
}
-o
${
gmkpack_o
}
-p
masterodb
-h
$HOMEPACK
/PHYEX
...
...
@@ -222,7 +221,6 @@ if [ $compilation -eq 1 ]; then
resetpack
-f
#Is it really useful?
reftree
=
'local'
subs
=
""
#There is nothing to exclude from compilation because (normally) only needed files are copied into the pack
fi
cd
$HOMEPACK
/
$name
/src/local/phyex
...
...
@@ -234,7 +232,7 @@ if [ $compilation -eq 1 ]; then
else
expand_options
=
""
fi
subs
=
"
$sub
s
-s turb -s micro -s aux -s ext -s conv -s externals"
#externals is the old name for aux/ext
subs
=
"
-s gmkpack_ignored_file
s -s turb -s micro -s aux -s ext -s conv -s externals"
#externals is the old name for aux/ext
prep_code
=
$PHYEXTOOLSDIR
/prep_code.sh
if
[
"
$fromdir
"
==
''
]
;
then
echo
"Clone repository, and checkout commit
$commit
(using prep_code.sh)"
...
...
@@ -254,7 +252,18 @@ if [ $compilation -eq 1 ]; then
[
-d
PHYEX/
$rep
]
&&
mv
PHYEX/
$rep
.
done
if
[
-f
PHYEX/gmkpack_ignored_files
]
;
then
sed
-i
"/^end_of_ignored_files/i
$(
first
=
1
;
for
line
in
$(
cat
PHYEX/gmkpack_ignored_files
)
;
do
echo
-n
$(
test
$first
-ne
1
&&
echo
\\
n
)
${
line
}
;
first
=
0
;
done
)
"
$HOMEPACK
/
$name
/ics_masterodb
#gmkpack_ignored_files contains a list of file, present in the reference pack, that is not used anymore
#and must be excluded from compilation (in case of a full comilation) or from re-compilation (in case of a non-full
#compilation).
if
[
$fullcompilation
==
0
]
;
then
#Content is added in the ics_masterodb script
sed
-i
"/^end_of_ignored_files/i
$(
first
=
1
;
for
line
in
$(
cat
PHYEX/gmkpack_ignored_files
)
;
do
echo
-n
$(
test
$first
-ne
1
&&
echo
\\
n
)
${
line
}
;
first
=
0
;
done
)
"
$HOMEPACK
/
$name
/ics_masterodb
else
#Files must be suppressed (non phyex files)
for
file
in
$(
cat
PHYEX/gmkpack_ignored_files
)
;
do
[
-f
$HOMEPACK
/
$name
/src/local/
$file
]
&&
rm
-f
$HOMEPACK
/
$name
/src/local/
$file
done
fi
fi
EXT
=
PHYEX/ext/
...
...
@@ -268,6 +277,8 @@ if [ $compilation -eq 1 ]; then
[
-f
$EXT
/suphmpa.F90
]
&&
mv
$EXT
/suphmpa.F90 ../arpifs/phys_dmn/
#Special mpa case
[
-f
$EXT
/modd_spp_type.F90
]
&&
mv
$EXT
/modd_spp_type.F90 ../mpa/micro/externals/
[
-f
$EXT
/spp_mod_type.F90
]
&&
mv
$EXT
/spp_mod_type.F90 ../mpa/micro/externals/
[
-d
$EXT
/dead_code
]
&&
rm
-rf
$EXT
/dead_code/
if
[
$EXT
==
"PHYEX/externals"
]
;
then
mv
$EXT
.
else
...
...
This diff is collapsed.
Click to expand it.
tools/check_commit_mesonh.sh
+
3
−
1
View file @
6af44d39
...
...
@@ -222,12 +222,14 @@ if [ $compilation -eq 1 ]; then
!
grep
-i
MODI_TH_R_FROM_THL_RT_
$(
ls
MNH/compute_entr_detr.f90 MNH/compute_entr_detr.f90 PHYEX/turb/mode_compute_updraft
*
.f90 MNH/ice_adjust_bis.f90 MNH/prep_ideal_case.f90 MNH/set_rsou.f90 2>/dev/null
)
>
/dev/null
&&
rm
-f
MNH/th_r_from_thl_rt_1d.f90 MNH/th_r_from_thl_rt_2d.f90 MNH/th_r_from_thl_rt_3d.f90
#Configure and compilation
command
-v
module
&&
modulelist
=
$(
module
-t
list 2>&1 |
tail
-n
+2
)
#save loaded modules
./configure
set
+e
#file ends with a test that can return false
.
../conf/profile_mesonh-
*
.
../conf/profile_mesonh-
*
#This lines modifies the list of loaded modules
set
-e
make
-j
8 |
tee
../Output_compilation
make installmaster |
tee
-a
../Output_compilation
command
-v
module
&&
module load
$modulelist
#restore loaded modules
fi
if
[
$run
-ge
1
]
;
then
...
...
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