Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CHEASE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SPC
CHEASE
Commits
68595c2b
Commit
68595c2b
authored
2 weeks ago
by
Mireille Schneider
Browse files
Options
Downloads
Patches
Plain Diff
Add flexibility to read/write ddv3 or ddv4
parent
52af49da
Branches
feature/muscle3
No related tags found
1 merge request
!75
Feature/muscle3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
input/scenario_iter.yaml
+2
-1
2 additions, 1 deletion
input/scenario_iter.yaml
python/config_muscle3.sh
+4
-2
4 additions, 2 deletions
python/config_muscle3.sh
python/run_chease_iwrap_choices.py
+2
-2
2 additions, 2 deletions
python/run_chease_iwrap_choices.py
with
8 additions
and
5 deletions
input/scenario_iter.yaml
+
2
−
1
View file @
68595c2b
...
...
@@ -19,7 +19,8 @@ shot: 134173
run_in
:
106
input_user_or_path
:
public
input_database
:
ITER
input_backend
:
HDF5
input_backend
:
HDF5
input_ddv
:
3
# -----------------------------------
# PARAMETERS TO SAVE THE OUTPUT DATA
...
...
This diff is collapsed.
Click to expand it.
python/config_muscle3.sh
+
4
−
2
View file @
68595c2b
export
FC
=
ifort
module purge
module load IMAS INTERPOS XMLlib iWrap MUSCLE3 iWrap-plugins-MUSCLE3 yMMSL-dot
module load IMAS/4.0.0-2024.12-intel-2023b
module load INTERPOS XMLlib iWrap MUSCLE3 iWrap-plugins-MUSCLE3 yMMSL-dot
export
PYTHONPATH
=
$PWD
/..:
$PYTHONPATH
export
IMAS_AL_DISABLE_OBSOLESCENT_WARNING
=
1
#
export IMAS_AL_DISABLE_OBSOLESCENT_WARNING=1
#export IMAS_AL_DISABLE_VALIDATE=1
This diff is collapsed.
Click to expand it.
python/run_chease_iwrap_choices.py
+
2
−
2
View file @
68595c2b
...
...
@@ -119,14 +119,14 @@ def run_chease_iwrap_choices() -> None:
# READ INPUT IDSS
print
(
'
=> Open input datafile
'
)
input
=
imas
.
DBEntry
(
get_backend_id
(
cc
[
'
input_backend
'
]),
cc
[
'
input_database
'
],
cc
[
'
shot
'
],
cc
[
'
run_in
'
],
cc
[
'
input_user_or_path
'
])
input
=
imas
.
DBEntry
(
get_backend_id
(
cc
[
'
input_backend
'
]),
cc
[
'
input_database
'
],
cc
[
'
shot
'
],
cc
[
'
run_in
'
],
cc
[
'
input_user_or_path
'
]
,
data_version
=
str
(
cc
[
'
input_ddv
'
])
)
input
.
open
()
# READ FULL TIME VECTOR OF EQUILIBRIUM IDS TO GET THE TIME BASE
time_array
,
it
,
ntimes
=
time_compute
(
input
,
cc
[
'
time_slice
'
],
cc
[
'
ntimes
'
],
cc
[
'
dt_required
'
])
# IF LOCAL DATABASE DOES NOT EXIST: CREATE IT
local_database
=
os
.
getenv
(
"
HOME
"
)
+
"
/public/imasdb/
"
+
cc
[
'
output_database
'
]
+
"
/3
/0
"
local_database
=
os
.
getenv
(
"
HOME
"
)
+
"
/public/imasdb/
"
+
cc
[
'
output_database
'
]
+
'
/
'
+
imas
.
al_dd_version
.
split
(
"
.
"
)[
0
]
+
'
/0
'
if
os
.
path
.
isdir
(
local_database
)
==
False
:
print
(
"
-- Create local database
"
+
local_database
)
os
.
makedirs
(
local_database
)
...
...
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