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
01bd8aac
Commit
01bd8aac
authored
2 years ago
by
Anne Tipka
Browse files
Options
Downloads
Patches
Plain Diff
added history comments to previous commit changes and minor additional corrections
parent
373b74eb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Source/Python/Mods/tools.py
+4
-0
4 additions, 0 deletions
Source/Python/Mods/tools.py
Source/Python/_config.py
+3
-0
3 additions, 0 deletions
Source/Python/_config.py
Source/Python/install.py
+6
-5
6 additions, 5 deletions
Source/Python/install.py
with
13 additions
and
5 deletions
Source/Python/Mods/tools.py
+
4
−
0
View file @
01bd8aac
...
...
@@ -26,6 +26,10 @@
# - added function to check if a specific string is in a file
# - added function to overwrite lines in a file which contain specific string
#
# July 2022 - Anne Tipka (formerly Philipp)
# - modified function put_file_to_ecserver to put the file automatically
# to $HOME directory, to avoid static path creation
#
# @License:
# (C) Copyright 2014-2020.
# Anne Philipp, Leopold Haimberger
...
...
This diff is collapsed.
Click to expand it.
Source/Python/_config.py
+
3
−
0
View file @
01bd8aac
...
...
@@ -13,6 +13,9 @@
# - added filename which will contain paths for system version
# - checks if software runs in normal local mode or system local mode
# and defines paths to user directory and executable paths
# July 2022 - Anne Tipka (formerly Philipp)
# - modified to account for changes on Bologna servers,
# e.g. queue names and hostnames
#
# @License:
# (C) Copyright 2014-2020.
...
...
This diff is collapsed.
Click to expand it.
Source/Python/install.py
+
6
−
5
View file @
01bd8aac
...
...
@@ -26,6 +26,11 @@
# - read new argument from command line
# - write .setup.rc for a system installation into Run directory
# - copy executables to system path and user files to user path
# July 2022 - Anne Tipka (formerly Philipp)
# - BugFix: sysinstalldir must be defined in related else path
# - template files are now using $HOME and $SCRATCH and hence don't
# need ecmwf user group id. Eliminated from function mk_compile_job
# and mk_job_template
#
# @License:
# (C) Copyright 2014-2020.
...
...
@@ -680,7 +685,7 @@ def mk_compilejob(makefile, ecuid, fp_root):
return
def
mk_job_template
(
ecuid
,
ecgid
,
fp_root
):
def
mk_job_template
(
ecuid
,
fp_root
):
'''
Modifies the original job template file so that it is specified
for the user and the environment were it will be applied. Result
is stored in a new file.
...
...
@@ -690,9 +695,6 @@ def mk_job_template(ecuid, ecgid, fp_root):
ecuid : str
The user id on ECMWF server.
ecgid : str
The group id on ECMWF server.
fp_root : str
Path to the root directory of FLEXPART environment or flex_extract
environment.
...
...
@@ -719,7 +721,6 @@ def mk_job_template(ecuid, ecgid, fp_root):
cls
=
NewTextTemplate
)
stream
=
compile_template
.
generate
(
usergroup
=
ecgid
,
username
=
ecuid
,
version_number
=
_config
.
_VERSION_STR
,
fp_root_path
=
fp_root_path_to_python
,
...
...
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