Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Chaofan Chen
ogs
Commits
87649ee3
Commit
87649ee3
authored
1 year ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[MatL/MFront] Add actual value to the error
Small reformatting if string literals.
parent
c6a9c497
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MaterialLib/SolidModels/MFront/MFrontGeneric.h
+9
-8
9 additions, 8 deletions
MaterialLib/SolidModels/MFront/MFrontGeneric.h
with
9 additions
and
8 deletions
MaterialLib/SolidModels/MFront/MFrontGeneric.h
+
9
−
8
View file @
87649ee3
...
...
@@ -222,8 +222,10 @@ public:
// TODO allow reordering of gradients and thermodynamic forces?
if
(
grads
[
i
].
name
!=
Grad
::
name
)
{
OGS_FATAL
(
"The behaviour's {}th driver must be {}."
,
i
,
Grad
::
name
);
OGS_FATAL
(
"OGS expects the {}th gradient to be {} but MFront "
"provides {}."
,
i
,
Grad
::
name
,
grads
[
i
].
name
);
}
if
(
grads
[
i
].
type
!=
Grad
::
type
)
...
...
@@ -264,16 +266,16 @@ public:
if
(
tdfs
[
i
].
name
!=
TDF
::
name
)
{
OGS_FATAL
(
"The behaviour's {}th thermodynamic force must be {}."
,
i
,
TDF
::
name
);
"OGS expects the {}th thermodynamic force to be {} but "
"MFront provides {}."
,
i
,
TDF
::
name
,
tdfs
[
i
].
name
);
}
if
(
tdfs
[
i
].
type
!=
TDF
::
type
)
{
OGS_FATAL
(
"The behaviour's {}th thermodynamic force ({}) must be "
"of "
"type {}."
,
"of type {}."
,
i
,
tdfs
[
i
].
name
,
varTypeToString
(
TDF
::
type
));
}
...
...
@@ -282,8 +284,7 @@ public:
{
OGS_FATAL
(
"The behaviour's {}th thermodynamic force ({}) must "
"have "
"size {} instead of {}."
,
"have size {} instead of {}."
,
i
,
tdfs
[
i
].
name
,
TDF
::
template
size
<
DisplacementDim
>(),
mgis
::
behaviour
::
getVariableSize
(
tdfs
[
i
],
hyp
));
}
...
...
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