Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MoReFEM
CoreLibrary
MoReFEM
Commits
fd4c2e9d
Commit
fd4c2e9d
authored
Apr 29, 2015
by
GILLES Sebastien
Browse files
#531
Mass: modify Assemble prototype to allow assembling into several matrices.
parent
76a6ec29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Sources/FiniteElement/Operators/GlobalVariationalOperatorInstances/BilinearForm/Mass.hpp
View file @
fd4c2e9d
...
...
@@ -103,7 +103,8 @@ namespace HappyHeart
* for Assemble() method rather than figuring out what is a variadic method and which additional
* arguments are required (none for this specific operator).
*/
void
Assemble
(
GlobalMatrixWithCoefficient
&&
global_matrix_with_coeff
,
const
Domain
&
domain
=
Domain
())
const
;
template
<
class
LinearAlgebraTupleT
>
void
Assemble
(
LinearAlgebraTupleT
&&
global_matrix_with_coeff
,
const
Domain
&
domain
=
Domain
())
const
;
...
...
Sources/FiniteElement/Operators/GlobalVariationalOperatorInstances/BilinearForm/Mass.hxx
View file @
fd4c2e9d
...
...
@@ -18,9 +18,10 @@ namespace HappyHeart
{
inline
void
Mass
::
Assemble
(
GlobalMatrixWithCoefficient
&&
global_matrix_with_coeff
,
const
Domain
&
domain
)
const
template
<
class
LinearAlgebraTupleT
>
inline
void
Mass
::
Assemble
(
LinearAlgebraTupleT
&&
linear_algebra_tuple
,
const
Domain
&
domain
)
const
{
return
Parent
::
Assemble531
(
std
::
m
ake_tuple
(
global_matrix_with_coeff
),
domain
);
return
Parent
::
Assemble531
(
std
::
m
ove
(
linear_algebra_tuple
),
domain
);
}
...
...
Sources/ModelInstances/Hyperelasticity/VariationalFormulationHyperElasticity.hxx
View file @
fd4c2e9d
...
...
@@ -223,8 +223,8 @@ namespace HappyHeart
const
double
mass_coefficient
=
2.
*
this
->
GetVolumicMass
()
/
Utilities
::
Square
(
transient_parameters
.
GetTimeStep
());
this
->
GetNonCstMassPerSquareTimeStepOperator
().
Assemble
(
GlobalMatrixWithCoefficient
(
vm
.
GetNonCstMassPerSquareTime
(),
mass_coefficient
));
this
->
GetNonCstMassPerSquareTimeStepOperator
().
Assemble
(
std
::
make_tuple
(
GlobalMatrixWithCoefficient
(
vm
.
GetNonCstMassPerSquareTime
(),
mass_coefficient
))
)
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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