Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
encyclopedia-gui
Commits
9370414f
Commit
9370414f
authored
May 10, 2019
by
Markus Scheidgen
Browse files
Fixed wrong group type name for parameter variation.
parent
6f076b65
Changes
2
Hide whitespace changes
Inline
Side-by-side
client/src/material-mod/DataStore.js
View file @
9370414f
...
...
@@ -105,13 +105,13 @@ function getGroups(){
function
getGroupTypeCode
(
group
){
if
(
group
.
group_type
===
'
equation of state
'
)
return
'
eos
'
;
else
if
(
group
.
group_type
===
'
convergence
'
)
return
'
par
'
;
else
if
(
group
.
group_type
===
'
parameter variation
'
)
return
'
par
'
;
}
function
getGroupType
(
leafId
){
let
code
=
leafId
.
substring
(
0
,
3
);
if
(
code
===
'
eos
'
)
return
'
equation of state
'
;
else
if
(
code
===
'
par
'
)
return
'
convergence
'
;
else
if
(
code
===
'
par
'
)
return
'
parameter variation
'
;
else
return
null
;
}
...
...
client/src/material-mod/MethodologyDetails.view.js
View file @
9370414f
...
...
@@ -427,7 +427,6 @@ class MethodologyDetails extends DetailsViewBase {
let
calcType
=
c
.
run_type
;
if
(
DataStore
.
getGroups
().
has
(
c
.
id
)){
//leafId))
calcType
=
DataStore
.
getGroupType
(
c
.
id
);
//leafId);
if
(
calcType
===
'
convergence
'
)
calcType
=
'
parameter variation
'
;
//console.log('Group',DataStore.getGroupType(leafId));
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment