Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flex Extract
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
Flexpart
Flex Extract
Commits
1e6cc1f5
Commit
1e6cc1f5
authored
2 years ago
by
Anne Tipka
Browse files
Options
Downloads
Patches
Plain Diff
added new setup scripts to account for Bologna Servers
parent
8ef1febb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup_bologna.sh
+99
-0
99 additions, 0 deletions
setup_bologna.sh
setup_local_bologna.sh
+105
-0
105 additions, 0 deletions
setup_local_bologna.sh
with
204 additions
and
0 deletions
setup_bologna.sh
0 → 100755
+
99
−
0
View file @
1e6cc1f5
#!/bin/bash
#
# @Author: Anne Philipp
#
# @Date: September, 10 2018
#
# @Description:
# This file defines the flex_extract's available installation
# parameters and puts them together for the call of the actual
# python installation script. It also does some checks to
# guarantee necessary parameters were set.
#
# @Changes:
# July 2022 - Anne Tipka (formerly Philipp)
# - adapted for the use on ECWMF Bologna servers
#
# @Licence:
# (C) Copyright 2014-2020.
#
# SPDX-License-Identifier: CC-BY-4.0
#
# This work is licensed under the Creative Commons Attribution 4.0
# International License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by/4.0/ or send a letter to
# Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
#
# -----------------------------------------------------------------
# AVAILABLE COMMANDLINE ARGUMENTS TO SET
#
# THE USER HAS TO SPECIFY THESE PARAMETERS
#
TARGET
=
'ecs'
MAKEFILE
=
'makefile_atosecs'
ECUID
=
'<username>'
ECGID
=
'<groupID>'
GATEWAY
=
'<gatewayname>'
DESTINATION
=
'<username>@genericSftp'
INSTALLDIR
=
None
JOB_TEMPLATE
=
''
CONTROLFILE
=
'CONTROL_EA5'
# -----------------------------------------------------------------
#
# AFTER THIS LINE THE USER DOES NOT HAVE TO CHANGE ANYTHING !!!
#
# -----------------------------------------------------------------
# PATH TO INSTALLATION SCRIPT
script
=
"Source/Python/install.py"
# INITIALIZE EMPTY PARAMETERLIST
parameterlist
=
""
# CHECK IF ON ECMWF SERVER;
if
[[
$EC_CLUSTER
==
"ecs"
]]
||
[[
$EC_CLUSTER
==
"aa"
*
]]
||
[[
$EC_CLUSTER
==
"ab"
*
]]
||
[[
$EC_CLUSTER
==
"ac"
*
]]
||
[[
$EC_CLUSTER
==
"ad"
*
]]
;
then
# LOAD PYTHON3 MODULE
module load python3
fi
# DEFAULT PARAMETERLIST
if
[
-n
"
$TARGET
"
]
;
then
parameterlist
=
" --target=
$TARGET
"
else
echo
"ERROR: No installation target specified."
echo
"EXIT WITH ERROR"
exit
fi
# CHECK FOR MORE PARAMETER
if
[
"
$TARGET
"
==
"ecs"
]
||
[
"
$TARGET
"
==
"hpc"
]
;
then
# check if necessary Parameters are set
if
[
-z
"
$ECUID
"
]
||
[
-z
"
$ECGID
"
]
||
[
"
$ECUID
"
==
"<username>"
]
||
[
"
$ECGID
"
==
"<groupID>"
]
;
then
echo
"ERROR: At least one of the following parameters are not properly set: ECUID or ECGID!"
echo
"EXIT WITH ERROR"
exit
else
parameterlist+
=
" --ecuid=
$ECUID
--ecgid=
$ECGID
--gateway=
$GATEWAY
--destination=
$DESTINATION
"
fi
if
[
-z
"
$GATEWAY
"
]
||
[
-z
"
$DESTINATION
"
]
||
[
"
$GATEWAY
"
==
"<gatewayname>"
]
||
[
"
$DESTINATION
"
==
"<username>@genericSftp"
]
;
then
echo
"WARNING: Not setting parameters GATEWAY and DESTINATION means there will be no file transfer to local gateway server."
fi
fi
if
[
-n
"
$MAKEFILE
"
]
;
then
parameterlist+
=
" --makefile=
$MAKEFILE
"
fi
if
[
-n
"
$FLEXPARTDIR
"
]
;
then
# not empty
parameterlist+
=
" --flexpartdir=
$FLEXPARTDIR
"
fi
if
[
-n
"
$JOB_TEMPLATE
"
]
;
then
parameterlist+
=
" --job_template=
$JOB_TEMPLATE
"
fi
if
[
-n
"
$CONTROLFILE
"
]
;
then
parameterlist+
=
" --controlfile=
$CONTROLFILE
"
fi
# -----------------------------------------------------------------
# CALL INSTALLATION SCRIPT WITH DETERMINED COMMANDLINE ARGUMENTS
$script
$parameterlist
This diff is collapsed.
Click to expand it.
setup_local_bologna.sh
0 → 100755
+
105
−
0
View file @
1e6cc1f5
#!/bin/bash
#
# @Author: Anne Philipp
#
# @Date: September, 10 2018
#
# @Description:
# This file defines the flex_extract's available installation
# parameters and puts them together for the call of the actual
# python installation script. It also does some checks to
# guarantee necessary parameters were set.
#
# @History:
# Leopold Haimberger; Aug 2020
# added new parameter for a system installation
# (seperate executable and user directories)
# Anne Tipka; July 2022
# Adapted to use on Bologna servers
#
# @Licence:
# (C) Copyright 2014-2020.
#
# SPDX-License-Identifier: CC-BY-4.0
#
# This work is licensed under the Creative Commons Attribution 4.0
# International License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by/4.0/ or send a letter to
# Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
#
# -----------------------------------------------------------------
# AVAILABLE COMMANDLINE ARGUMENTS TO SET
#
# THE USER HAS TO SPECIFY THESE PARAMETERS
#
TARGET
=
'local'
MAKEFILE
=
'makefile_local_gfortran'
ECUID
=
'<username>'
ECGID
=
'<groupID>'
GATEWAY
=
'<gatewayname>'
DESTINATION
=
'<username>@genericSftp'
INSTALLDIR
=
None
SYSINSTALLDIR
=
None
JOB_TEMPLATE
=
''
CONTROLFILE
=
'CONTROL_EA5'
# -----------------------------------------------------------------
#
# AFTER THIS LINE THE USER DOES NOT HAVE TO CHANGE ANYTHING !!!
#
# -----------------------------------------------------------------
# PATH TO INSTALLATION SCRIPT
script
=
"Source/Python/install.py"
# INITIALIZE EMPTY PARAMETERLIST
parameterlist
=
""
# CHECK IF ON ECMWF SERVER; 0
if
[[
$EC_CLUSTER
==
"ecs"
]]
||
[[
$EC_CLUSTER
==
"aa"
*
]]
||
[[
$EC_CLUSTER
==
"ac"
*
]]
||
[[
$EC_CLUSTER
==
"ad"
*
]]
||
[[
$EC_CLUSTER
==
"ab"
*
]]
;
then
# LOAD PYTHON3 MODULE
module load python3
fi
# DEFAULT PARAMETERLIST
if
[
-n
"
$TARGET
"
]
;
then
parameterlist
=
" --target=
$TARGET
"
else
echo
"ERROR: No installation target specified."
echo
"EXIT WITH ERROR"
exit
fi
# CHECK FOR MORE PARAMETER
if
[
"
$TARGET
"
==
"ecs"
]
||
[
"
$TARGET
"
==
"hpc"
]
;
then
# check if necessary Parameters are set
if
[
-z
"
$ECUID
"
]
||
[
-z
"
$ECGID
"
]
||
[
-z
"
$GATEWAY
"
]
||
[
-z
"
$DESTINATION
"
]
;
then
echo
"ERROR: At least one of the following parameters are not set: ECUID, ECGID, GATEWAY, DESTINATION!"
echo
"EXIT WITH ERROR"
exit
else
parameterlist+
=
" --ecuid=
$ECUID
--ecgid=
$ECGID
--gateway=
$GATEWAY
--destination=
$DESTINATION
"
fi
fi
if
[
-n
"
$MAKEFILE
"
]
;
then
parameterlist+
=
" --makefile=
$MAKEFILE
"
fi
if
[
-n
"
$INSTALLDIR
"
]
;
then
parameterlist+
=
" --installdir=
$INSTALLDIR
"
fi
if
[
-n
"
$SYSINSTALLDIR
"
]
;
then
parameterlist+
=
" --sysinstalldir=
$SYSINSTALLDIR
"
fi
if
[
-n
"
$JOB_TEMPLATE
"
]
;
then
parameterlist+
=
" --job_template=
$JOB_TEMPLATE
"
fi
if
[
-n
"
$CONTROLFILE
"
]
;
then
parameterlist+
=
" --controlfile=
$CONTROLFILE
"
fi
# -----------------------------------------------------------------
# CALL INSTALLATION SCRIPT WITH DETERMINED COMMANDLINE ARGUMENTS
$script
$parameterlist
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