Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
dumux-repositories
dumux
Commits
541e49e3
Commit
541e49e3
authored
7 years ago
by
Johannes Hommel
Committed by
Simon Emmert
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[2pncmin][next] ported the .cc and problem files according to their 2pnc versions
parent
28e96442
No related branches found
No related tags found
2 merge requests
!632
Merge feature/2pncmin into next
,
!617
[WIP] Next
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/porousmediumflow/2pncmin/implicit/test_cc2pncmin.cc
+5
-7
5 additions, 7 deletions
test/porousmediumflow/2pncmin/implicit/test_cc2pncmin.cc
with
5 additions
and
7 deletions
test/porousmediumflow/2pncmin/implicit/test_cc2pncmin.cc
+
5
−
7
View file @
541e49e3
...
...
@@ -113,9 +113,8 @@ int main(int argc, char** argv) try
auto
problem
=
std
::
make_shared
<
Problem
>
(
fvGridGeometry
);
// the solution vector
using
GridView
=
typename
GET_PROP_TYPE
(
TypeTag
,
GridView
);
using
SolutionVector
=
typename
GET_PROP_TYPE
(
TypeTag
,
SolutionVector
);
SolutionVector
x
(
leafGridView
.
size
(
GridView
::
dimension
));
SolutionVector
x
(
leafGridView
.
size
(
0
));
problem
->
applyInitialSolution
(
x
);
auto
xOld
=
x
;
...
...
@@ -141,6 +140,9 @@ int main(int argc, char** argv) try
VtkOutputModule
<
TypeTag
>
vtkWriter
(
*
problem
,
*
fvGridGeometry
,
*
gridVariables
,
x
,
problem
->
name
());
VtkOutputFields
::
init
(
vtkWriter
);
//! Add model specific output fields
//add specific output
vtkWriter
.
addField
(
problem
->
getCurrentDensity
(),
"currentDensity [A/cm^2]"
);
vtkWriter
.
addField
(
problem
->
getReactionSourceH2O
(),
"reactionSourceH2O [mol/(sm^2)]"
);
vtkWriter
.
addField
(
problem
->
getReactionSourceO2
(),
"reactionSourceO2 [mol/(sm^2)]"
);
vtkWriter
.
addField
(
problem
->
getKxx
(),
"Kxx"
);
vtkWriter
.
addField
(
problem
->
getKyy
(),
"Kyy"
);
vtkWriter
.
write
(
0.0
);
...
...
@@ -166,10 +168,6 @@ int main(int argc, char** argv) try
// time loop
timeLoop
->
start
();
do
{
// set time for problem for implicit Euler scheme
problem
->
setTime
(
timeLoop
->
time
()
+
timeLoop
->
timeStepSize
()
);
problem
->
setTimeStepSize
(
timeLoop
->
timeStepSize
()
);
// set previous solution for storage evaluations
assembler
->
setPreviousSolution
(
xOld
);
...
...
@@ -251,4 +249,4 @@ catch (...)
{
std
::
cerr
<<
"Unknown exception thrown! ---> Abort!"
<<
std
::
endl
;
return
4
;
}
\ No newline at end of file
}
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