Skip to content
Snippets Groups Projects
Commit 58c6869e authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Typedef: dataptr

parent 085a7a56
Branches
No related tags found
No related merge requests found
......@@ -16,13 +16,14 @@ namespace Dune {
template <class OuterFunctionType, class VectorType, class MatrixType>
class GlobalLaursenNonlinearity
: public GlobalNonlinearity<VectorType, MatrixType> {
private:
typedef shared_ptr<BlockVector<FieldVector<double, 1>> const> dataptr;
public:
using GlobalNonlinearity<VectorType, MatrixType>::dim;
GlobalLaursenNonlinearity(
shared_ptr<BlockVector<FieldVector<double, 1>> const> mu,
shared_ptr<BlockVector<FieldVector<double, 1>> const> normalStress,
shared_ptr<BlockVector<FieldVector<double, 1>> const> nodalIntegrals)
GlobalLaursenNonlinearity(dataptr mu, dataptr normalStress,
dataptr nodalIntegrals)
: mu(mu),
normalStress(normalStress),
nodalIntegrals(nodalIntegrals),
......@@ -64,9 +65,9 @@ class GlobalLaursenNonlinearity
private:
shared_ptr<LocalNonlinearity<dim> const> const trivialNonlinearity;
shared_ptr<BlockVector<FieldVector<double, 1>> const> mu;
shared_ptr<BlockVector<FieldVector<double, 1>> const> normalStress;
shared_ptr<BlockVector<FieldVector<double, 1>> const> nodalIntegrals;
dataptr mu;
dataptr normalStress;
dataptr nodalIntegrals;
std::vector<shared_ptr<LocalNonlinearity<dim> const>> mutable restrictions;
};
......
......@@ -17,18 +17,15 @@ namespace Dune {
template <class VectorType, class MatrixType>
class GlobalRuinaNonlinearity
: public GlobalNonlinearity<VectorType, MatrixType> {
private:
typedef shared_ptr<BlockVector<FieldVector<double, 1>> const> dataptr;
public:
using GlobalNonlinearity<VectorType, MatrixType>::dim;
GlobalRuinaNonlinearity(
shared_ptr<BlockVector<FieldVector<double, 1>> const> nodalIntegrals,
shared_ptr<BlockVector<FieldVector<double, 1>> const> a,
shared_ptr<BlockVector<FieldVector<double, 1>> const> mu,
shared_ptr<BlockVector<FieldVector<double, 1>> const> eta,
shared_ptr<BlockVector<FieldVector<double, 1>> const> normalStress,
shared_ptr<BlockVector<FieldVector<double, 1>> const> b,
shared_ptr<BlockVector<FieldVector<double, 1>> const> state,
shared_ptr<BlockVector<FieldVector<double, 1>> const> L, double h)
GlobalRuinaNonlinearity(dataptr nodalIntegrals, dataptr a, dataptr mu,
dataptr eta, dataptr normalStress, dataptr b,
dataptr state, dataptr L, double h)
: nodalIntegrals(nodalIntegrals),
a(a),
mu(mu),
......@@ -67,14 +64,14 @@ class GlobalRuinaNonlinearity
private:
shared_ptr<LocalNonlinearity<dim> const> const trivialNonlinearity;
shared_ptr<BlockVector<FieldVector<double, 1>> const> nodalIntegrals;
shared_ptr<BlockVector<FieldVector<double, 1>> const> a;
shared_ptr<BlockVector<FieldVector<double, 1>> const> mu;
shared_ptr<BlockVector<FieldVector<double, 1>> const> eta;
shared_ptr<BlockVector<FieldVector<double, 1>> const> normalStress;
shared_ptr<BlockVector<FieldVector<double, 1>> const> b;
shared_ptr<BlockVector<FieldVector<double, 1>> const> state;
shared_ptr<BlockVector<FieldVector<double, 1>> const> L;
dataptr nodalIntegrals;
dataptr a;
dataptr mu;
dataptr eta;
dataptr normalStress;
dataptr b;
dataptr state;
dataptr L;
double const h;
std::vector<shared_ptr<LocalNonlinearity<dim> const>> mutable restrictions;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment