Commit 6c59350a authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

missed those

parent 5d478feb
Pipeline #157168 passed with stages
in 11 minutes and 11 seconds
......@@ -136,7 +136,7 @@ public:
class VectorFieldDummy : public SampleGenerator<VectorField> {
public:
VectorFieldDummy(Meshes &meshes) : SampleGenerator(meshes) { verbose = 0; }
VectorFieldDummy(const Meshes &meshes) : SampleGenerator(meshes) { verbose = 0; }
void drawSample(const SampleID &id) override {
vout(1) << "Dummy Generator" << endl;
......@@ -147,7 +147,7 @@ public:
class TensorDummy : public SampleGenerator<Tensor> {
public:
TensorDummy(Meshes &meshes) : SampleGenerator(meshes) { verbose = 0; }
TensorDummy(const Meshes &meshes) : SampleGenerator(meshes) { verbose = 0; }
void drawSample(const SampleID &id) override {
vout(1) << "Dummy Generator" << endl;
......@@ -158,7 +158,7 @@ public:
class RVectorDummy : public SampleGenerator<RVector> {
public:
RVectorDummy(Meshes &meshes) : SampleGenerator(meshes) { verbose = 0; }
RVectorDummy(const Meshes &meshes) : SampleGenerator(meshes) { verbose = 0; }
void drawSample(const SampleID &id) override {
vout(1) << "Dummy Generator" << endl;
......@@ -169,7 +169,7 @@ public:
class CVectorDummy : public SampleGenerator<CVector> {
public:
CVectorDummy(Meshes &meshes) : SampleGenerator(meshes) { verbose = 0; }
CVectorDummy(const Meshes &meshes) : SampleGenerator(meshes) { verbose = 0; }
void drawSample(const SampleID &id) override {
vout(1) << "Dummy Generator" << endl;
......@@ -180,7 +180,7 @@ public:
class RMatrixDummy : public SampleGenerator<RMatrix> {
public:
RMatrixDummy(Meshes &meshes) : SampleGenerator(meshes) { verbose = 0; }
RMatrixDummy(const Meshes &meshes) : SampleGenerator(meshes) { verbose = 0; }
void drawSample(const SampleID &id) override {
vout(1) << "Dummy Generator" << endl;
......@@ -191,7 +191,7 @@ public:
class CMatrixDummy : public SampleGenerator<CMatrix> {
public:
CMatrixDummy(Meshes &meshes) : SampleGenerator(meshes) { verbose = 0; }
CMatrixDummy(const Meshes &meshes) : SampleGenerator(meshes) { verbose = 0; }
void drawSample(const SampleID &id) override {
vout(1) << "Dummy Generator" << endl;
......
......@@ -116,7 +116,7 @@ private:
}
public:
UniformDistributionRMatrix(Meshes &meshes, int rows, int cols, double a, double b) :
UniformDistributionRMatrix(const Meshes &meshes, int rows, int cols, double a, double b) :
SampleGenerator(meshes),
uniformDist(meshes, cols, a, b) {
if (rows != -1)
......
......@@ -40,7 +40,7 @@ class HybridCellFluxGenerator : public SampleGenerator<VectorField> {
void drawSample(const SampleID &id) override {};
public:
HybridCellFluxGenerator(Meshes &meshes, HybridFaceNormalFluxGenerator &generator) :
HybridCellFluxGenerator(const Meshes &meshes, HybridFaceNormalFluxGenerator &generator) :
SampleGenerator(meshes),
generator(generator) {}
......
......@@ -74,6 +74,6 @@ PDESolver *PDESolverCreator::Create(const Meshes &meshes) {
Exit(_model + " not found")
}
std::unique_ptr<PDESolver> PDESolverCreator::CreateUnique(Meshes &meshes) {
std::unique_ptr<PDESolver> PDESolverCreator::CreateUnique(const Meshes &meshes) {
return std::unique_ptr<PDESolver>(Create(meshes));
}
......@@ -61,7 +61,7 @@ public:
PDESolver *Create(const Meshes &meshes);
std::unique_ptr<PDESolver> CreateUnique(Meshes &meshes);
std::unique_ptr<PDESolver> CreateUnique(const Meshes &meshes);
};
#endif //PDESOLVERCREATOR_HPP
......@@ -37,7 +37,7 @@ protected:
double reaction = 1.0;
public:
IStochasticReactionProblem(Meshes &meshes, GeneratorNames genNames={}) :
IStochasticReactionProblem(const Meshes &meshes, GeneratorNames genNames={}) :
IStochasticProblem(meshes, genNames) {
config.get("Diffusion", diffusion);
config.get("Convection", convection);
......@@ -110,7 +110,7 @@ inline Scalar u0(const Point &x) {
class ExponentialReaction2D : public IStochasticReactionProblem {
public:
ExponentialReaction2D(Meshes &meshes) :
ExponentialReaction2D(const Meshes &meshes) :
IStochasticReactionProblem(meshes) {};
Scalar Concentration(double t, const Point &x) const override {
......@@ -141,7 +141,7 @@ private:
double r0 = 1.0;
double r1 = 0.0;
public:
LogisticReaction2D(Meshes &meshes) :
LogisticReaction2D(const Meshes &meshes) :
IStochasticReactionProblem(meshes) {
config.get("Reaction0", r0);
config.get("Reaction1", r1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment