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
a4b6f6f9
Commit
a4b6f6f9
authored
8 years ago
by
wenqing
Browse files
Options
Downloads
Patches
Plain Diff
[Coupling] Added a flag in StaggeredCouplingTerm to check the existing of coupling
parent
0d637835
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ProcessLib/StaggeredCouplingTerm.cpp
+3
-9
3 additions, 9 deletions
ProcessLib/StaggeredCouplingTerm.cpp
ProcessLib/StaggeredCouplingTerm.h
+7
-7
7 additions, 7 deletions
ProcessLib/StaggeredCouplingTerm.h
ProcessLib/VectorMatrixAssembler.cpp
+2
-2
2 additions, 2 deletions
ProcessLib/VectorMatrixAssembler.cpp
with
12 additions
and
18 deletions
ProcessLib/StaggeredCouplingTerm.cpp
+
3
−
9
View file @
a4b6f6f9
/**
* \copyright
* Copyright (c) 2012-201
6
, OpenGeoSys Community (http://www.opengeosys.org)
* Copyright (c) 2012-201
7
, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
...
...
@@ -19,14 +19,8 @@ const StaggeredCouplingTerm createVoidStaggeredCouplingTerm()
{
std
::
map
<
ProcessType
,
Process
const
&>
coupled_pcsss
;
std
::
map
<
ProcessType
,
GlobalVector
const
*>
coupled_xs
;
return
StaggeredCouplingTerm
(
coupled_pcsss
,
coupled_xs
);
}
const
LocalCouplingTerm
createVoidLocalCouplingTerm
()
{
std
::
map
<
ProcessType
,
Process
const
&>
coupled_pcsss
;
std
::
map
<
ProcessType
,
const
std
::
vector
<
double
>>
local_coupled_xs
;
return
LocalCouplingTerm
(
coupled_pcsss
,
std
::
move
(
local_coupled_xs
));
const
bool
empty
=
true
;
return
StaggeredCouplingTerm
(
coupled_pcsss
,
coupled_xs
,
empty
);
}
}
// end of ProcessLib
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/StaggeredCouplingTerm.h
+
7
−
7
View file @
a4b6f6f9
/**
* \copyright
* Copyright (c) 2012-201
6
, OpenGeoSys Community (http://www.opengeosys.org)
* Copyright (c) 2012-201
7
, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
...
...
@@ -10,8 +10,7 @@
* Created on November 7, 2016, 12:14 PM
*/
#ifndef OGS_STAGGERED_COUPLING_TERM_H
#define OGS_STAGGERED_COUPLING_TERM_H
#pragma once
#include
<map>
...
...
@@ -26,13 +25,16 @@ struct StaggeredCouplingTerm
{
StaggeredCouplingTerm
(
std
::
map
<
ProcessType
,
Process
const
&>
const
&
coupled_processes_
,
std
::
map
<
ProcessType
,
GlobalVector
const
*>
const
&
coupled_xs_
)
:
coupled_processes
(
coupled_processes_
),
coupled_xs
(
coupled_xs_
)
std
::
map
<
ProcessType
,
GlobalVector
const
*>
const
&
coupled_xs_
,
const
bool
empty_
=
false
)
:
coupled_processes
(
coupled_processes_
),
coupled_xs
(
coupled_xs_
),
empty
(
empty_
)
{
}
std
::
map
<
ProcessType
,
Process
const
&>
const
&
coupled_processes
;
std
::
map
<
ProcessType
,
GlobalVector
const
*>
const
&
coupled_xs
;
const
bool
empty
;
};
struct
LocalCouplingTerm
...
...
@@ -50,8 +52,6 @@ struct LocalCouplingTerm
};
const
StaggeredCouplingTerm
createVoidStaggeredCouplingTerm
();
const
LocalCouplingTerm
createVoidLocalCouplingTerm
();
}
// end of ProcessLib
#endif
/* OGS_STAGGERED_COUPLING_TERM_H */
This diff is collapsed.
Click to expand it.
ProcessLib/VectorMatrixAssembler.cpp
+
2
−
2
View file @
a4b6f6f9
...
...
@@ -38,7 +38,7 @@ void VectorMatrixAssembler::assemble(
_local_K_data
.
clear
();
_local_b_data
.
clear
();
if
(
coupled_term
.
coupled_processes
.
empty
()
)
if
(
coupled_term
.
empty
)
{
local_assembler
.
assemble
(
t
,
local_x
,
_local_M_data
,
_local_K_data
,
_local_b_data
);
...
...
@@ -103,7 +103,7 @@ void VectorMatrixAssembler::assembleWithJacobian(
_local_b_data
.
clear
();
_local_Jac_data
.
clear
();
if
(
coupled_term
.
coupled_processes
.
empty
()
)
if
(
coupled_term
.
empty
)
{
_jacobian_assembler
->
assembleWithJacobian
(
local_assembler
,
t
,
local_x
,
local_xdot
,
dxdot_dx
,
dx_dx
,
...
...
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