Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
MostafaMollaali
dynamic
Commits
b13689cf
Commit
b13689cf
authored
6 years ago
by
renchao.lu
Browse files
Options
Downloads
Patches
Plain Diff
[PL] Move solution assignment of previous time step forward.
parent
f456d872
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ProcessLib/UncoupledProcessesTimeLoop.cpp
+11
-8
11 additions, 8 deletions
ProcessLib/UncoupledProcessesTimeLoop.cpp
with
11 additions
and
8 deletions
ProcessLib/UncoupledProcessesTimeLoop.cpp
+
11
−
8
View file @
b13689cf
...
...
@@ -680,6 +680,17 @@ UncoupledProcessesTimeLoop::solveCoupledEquationSystemsByStaggeredScheme(
}
};
// Update solutions of previous time step at once
{
int
process_id
=
0
;
for
(
auto
&
process_data
:
_per_process_data
)
{
auto
&
x
=
*
_process_solutions
[
process_id
];
process_data
->
process
.
preTimestep
(
x
,
t
,
dt
,
process_id
);
++
process_id
;
}
}
NumLib
::
NonlinearSolverStatus
nonlinear_solver_status
{
true
,
0
};
bool
coupling_iteration_converged
=
true
;
for
(
int
global_coupling_iteration
=
0
;
...
...
@@ -703,14 +714,6 @@ UncoupledProcessesTimeLoop::solveCoupledEquationSystemsByStaggeredScheme(
time_timestep_process
.
start
();
auto
&
x
=
*
_process_solutions
[
process_id
];
if
(
global_coupling_iteration
==
0
)
{
// Copy the solution of the previous time step to a vector that
// belongs to process. For some problems, both of the current
// solution and the solution of the previous time step are
// required for the coupling computation.
process_data
->
process
.
preTimestep
(
x
,
t
,
dt
,
process_id
);
}
CoupledSolutionsForStaggeredScheme
coupled_solutions
(
_solutions_of_coupled_processes
,
dt
,
process_id
);
...
...
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