Skip to content

Commit

Permalink
Adapt framework test objects to libMesh namespace removal
Browse files Browse the repository at this point in the history
  • Loading branch information
GiudGiud committed Oct 14, 2024
1 parent 858662c commit 8f0543a
Show file tree
Hide file tree
Showing 16 changed files with 47 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/include/auxkernels/CoupledGradAux.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CoupledGradAux : public AuxKernel
virtual Real computeValue();

/// Gradient being set by this kernel
RealGradient _grad;
libMesh::RealGradient _grad;
/// The number of coupled variable
int _coupled;
/// The value of coupled gradient
Expand Down
28 changes: 19 additions & 9 deletions test/include/kernels/UsrFunc.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,14 @@ Number ManSol4ADR1src(const Point & p,
Real & omega,
Real & t,
bool & is_transient);
Number
ManSol4ADR1exv(const Point & p, const Parameters &, const std::string &, const std::string &);
Gradient
ManSol4ADR1exd(const Point & p, const Parameters &, const std::string &, const std::string &);
Number ManSol4ADR1exv(const Point & p,
const libMesh::Parameters &,
const std::string &,
const std::string &);
Gradient ManSol4ADR1exd(const Point & p,
const libMesh::Parameters &,
const std::string &,
const std::string &);

/**
* Manufactured solution for advection-diffusion problem-2.
Expand All @@ -61,10 +65,16 @@ Number ManSol4ADR2src(const Point & p,
Real & Ck,
Real & omega,
Real & t);
Number ManSol4ADR2exv(const Point & p,
const libMesh::Parameters &,
const std::string &,
const std::string &);
Gradient ManSol4ADR2exd(const Point & p,
const libMesh::Parameters &,
const std::string &,
const std::string &);

Number
ManSol4ADR2exv(const Point & p, const Parameters &, const std::string &, const std::string &);
ManSolzeroV(const Point & p, const libMesh::Parameters &, const std::string &, const std::string &);
Gradient
ManSol4ADR2exd(const Point & p, const Parameters &, const std::string &, const std::string &);

Number ManSolzeroV(const Point & p, const Parameters &, const std::string &, const std::string &);
Gradient ManSolzeroG(const Point & p, const Parameters &, const std::string &, const std::string &);
ManSolzeroG(const Point & p, const libMesh::Parameters &, const std::string &, const std::string &);
4 changes: 2 additions & 2 deletions test/include/postprocessors/TestVectorType.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

/**
* A postprocessor for testing e.g. that a parallel system vector has
* not been inadvertently redeclared as ghosted
* not been inadvertently re-declared as ghosted
*/
class TestVectorType : public GeneralPostprocessor
{
Expand Down Expand Up @@ -43,5 +43,5 @@ class TestVectorType : public GeneralPostprocessor
std::string _test_vec_name;

/// The type to expect to find
ParallelType _par_type;
libMesh::ParallelType _par_type;
};
2 changes: 1 addition & 1 deletion test/include/userobjects/RestartableTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ class RestartableTypes : public GeneralUserObject
std::map<unsigned int, Real> & _map_data;
DenseVector<Real> & _dense_vector_data;
DenseMatrix<Real> & _dense_matrix_data;
Parameters & _raw_parameters;
libMesh::Parameters & _raw_parameters;
};
2 changes: 2 additions & 0 deletions test/src/auxkernels/CoupledGradAux.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

#include "CoupledGradAux.h"

using namespace libMesh;

registerMooseObject("MooseTestApp", CoupledGradAux);

InputParameters
Expand Down
2 changes: 2 additions & 0 deletions test/src/executioners/LinearPicardSteady.C
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#include "libmesh/equation_systems.h"

using namespace libMesh;

registerMooseObject("MooseTestApp", LinearPicardSteady);

InputParameters
Expand Down
2 changes: 2 additions & 0 deletions test/src/kernels/ExceptionKernel.C
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

#include "libmesh/threads.h"

using namespace libMesh;

/**
* Class static initialization:
* These members are used to create easily accessed shared memory among threads
Expand Down
2 changes: 2 additions & 0 deletions test/src/materials/ExceptionMaterial.C
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include "ExceptionMaterial.h"
#include "NonlinearSystemBase.h"

using namespace libMesh;

registerMooseObject("MooseTestApp", ExceptionMaterial);

InputParameters
Expand Down
2 changes: 2 additions & 0 deletions test/src/materials/QuadratureMaterial.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

#include "QuadratureMaterial.h"

using namespace libMesh;

registerMooseObject("MooseTestApp", QuadratureMaterial);

InputParameters
Expand Down
2 changes: 2 additions & 0 deletions test/src/postprocessors/TestVectorType.C
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

#include "libmesh/numeric_vector.h"

using namespace libMesh;

registerMooseObject("MooseTestApp", TestVectorType);

InputParameters
Expand Down
2 changes: 2 additions & 0 deletions test/src/problems/FixedPointProblem.C
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include "NonlinearSystemBase.h"

using namespace libMesh;

registerMooseObject("MooseTestApp", FixedPointProblem);

InputParameters
Expand Down
2 changes: 2 additions & 0 deletions test/src/userobjects/AllSystemsEvaluable.C
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include "libmesh/dof_map.h"
#include "libmesh/numeric_vector.h"

using namespace libMesh;

registerMooseObject("MooseTestApp", AllSystemsEvaluable);

InputParameters
Expand Down
2 changes: 2 additions & 0 deletions test/src/userobjects/RandomHitSolutionModifier.C
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include "NonlinearSystemBase.h"
#include "RandomHitUserObject.h"

using namespace libMesh;

registerMooseObject("MooseTestApp", RandomHitSolutionModifier);

InputParameters
Expand Down
2 changes: 2 additions & 0 deletions test/src/userobjects/RestartableTypes.C
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

#include "RestartableTypes.h"

using namespace libMesh;

registerMooseObject("MooseTestApp", RestartableTypes);

InputParameters
Expand Down
2 changes: 2 additions & 0 deletions test/src/userobjects/TestSaveInMesh.C
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include "libmesh/checkpoint_io.h"
#include "libmesh/nemesis_io.h"

using namespace libMesh;

registerMooseObject("MooseTestApp", TestSaveInMesh);

InputParameters
Expand Down
2 changes: 2 additions & 0 deletions test/src/userobjects/TestWeightedGapUserObject.C
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include "libmesh/quadrature.h"
#include "timpi/parallel_sync.h"

using namespace libMesh;

registerMooseObject("MooseTestApp", TestWeightedGapUserObject);

InputParameters
Expand Down

0 comments on commit 8f0543a

Please sign in to comment.