changed: certain elements do not like pragma once

This commit is contained in:
Arne Morten Kvarving 2013-01-07 10:01:20 +01:00
parent b3b547a4f1
commit 42b271cfd1
17 changed files with 89 additions and 17 deletions

View File

@ -10,7 +10,8 @@
//! and preconditioners in DUNE
//!
//==============================================================================
#pragma once
#ifndef APPLIER_H_
#define APPLIER_H_
namespace Opm {
namespace Elasticity {
@ -45,3 +46,5 @@ void PreApplier::apply(Vector& v, Vector& d)
}
}
#endif

View File

@ -9,7 +9,8 @@
//! \brief Class handling finite element assembly
//!
//==============================================================================
#pragma once
#ifndef ASMHANDLER_HPP_
#define ASMHANDLER_HPP_
#include <dune/geometry/referenceelements.hh>
#include <dune/common/fmatrix.hh>
@ -233,3 +234,5 @@ class ASMHandler {
}
}
#endif

View File

@ -9,7 +9,8 @@
//! \brief Class describing 2D quadrilateral grids
//!
//==============================================================================
#pragma once
#ifndef BOUNDARYGRID_HH_
#define BOUNDARYGRID_HH_
#include <dune/common/fvector.hh>
#include <dune/common/fmatrix.hh>
@ -500,3 +501,5 @@ BoundaryGrid::Vertex minXmaxY(std::vector<BoundaryGrid::Vertex>& in);
}
}
#endif

View File

@ -9,7 +9,8 @@
//! \brief Elasticity helper class
//!
//==============================================================================
#pragma once
#ifndef ELASTICITY_HPP_
#define ELASTICITY_HPP_
namespace Opm {
namespace Elasticity {
@ -69,3 +70,5 @@ class Elasticity {
}
}
#endif

View File

@ -9,7 +9,8 @@
//! \brief Elasticity upscale class
//!
//==============================================================================
#pragma once
#ifndef ELASTICITY_UPSCALE_HPP_
#define ELASTICITY_UPSCALE_HPP_
#include <dune/common/fmatrix.hh>
#include <opm/core/eclipse/EclipseGridParser.hpp>
@ -444,3 +445,5 @@ class ElasticityUpscale
}
}
#endif

View File

@ -9,7 +9,8 @@
//! \brief Logging helper utilities
//!
//==============================================================================
#pragma once
#ifndef LOGUTILS_HPP_
#define LOGUTILS_HPP_
class LoggerHelper {
public:
@ -29,3 +30,5 @@ class LoggerHelper {
int per_chunk; //!< Will log for each per_chunk processed
int max; //!< Total number of its
};
#endif

View File

@ -9,7 +9,8 @@
//! \brief Material interface.
//!
//==============================================================================
#pragma once
#ifndef MATERIAL_HH_
#define MATERIAL_HH_
#include <dune/common/fmatrix.hh>
#include <dune/common/dynvector.hh>
@ -97,3 +98,5 @@ private:
}
}
#endif

View File

@ -9,7 +9,8 @@
//! \brief Material properties.
//!
//==============================================================================
#pragma once
#ifndef MATERIALS_HH_
#define MATERIALS_HH_
#include "material.hh"
@ -173,3 +174,5 @@ private:
}
}
#endif

View File

@ -9,7 +9,8 @@
//! \brief Helper class with some matrix operations
//!
//==============================================================================
#pragma once
#ifndef MATRIXOPS_HPP_
#define MATRIXOPS_HPP_
#include <dune/istl/bcrsmatrix.hh>
@ -87,3 +88,5 @@ class MatrixOps {
}
}
#endif

View File

@ -9,7 +9,8 @@
//! \brief Linear operator for a Mortar block
//!
//==============================================================================
#pragma once
#ifndef MORTAR_EVALUATOR_HPP_
#define MORTAR_EVALUATOR_HPP_
#include <dune/istl/matrixmatrix.hh>
#include <dune/elasticity/matrixops.hpp>
@ -77,3 +78,5 @@ class MortarEvaluator : public Dune::LinearOperator<Vector, Vector> {
}
}
#endif

View File

@ -9,7 +9,8 @@
//! \brief Schur based linear operator for a Mortar block
//!
//==============================================================================
#pragma once
#ifndef MORTAR_SCHUR_HPP_
#define MORTAR_SCHUR_HPP_
#include <dune/istl/matrixmatrix.hh>
#include <dune/elasticity/applier.hpp>
@ -71,3 +72,5 @@ class MortarBlockEvaluator : public Dune::LinearOperator<Vector, Vector> {
}
}
#endif

View File

@ -9,7 +9,8 @@
//! \brief Schur based preconditioner for saddle point systems
//!
//==============================================================================
#pragma once
#ifndef SCHUR_PRECOND_HPP_
#define SCHUR_PRECOND_HPP_
#include <dune/istl/preconditioners.hh>
#include <dune/istl/matrixmatrix.hh>
@ -121,3 +122,5 @@ class MortarSchurPre : public Dune::Preconditioner<Vector,Vector> {
}
}
#endif

View File

@ -1,4 +1,16 @@
#pragma once
//==============================================================================
//!
//! \file mortar_utils.hpp
//!
//! \date Nov 9 2012
//!
//! \author Arne Morten Kvarving / SINTEF
//!
//! \brief Mortar helper class
//!
//==============================================================================
#ifndef MORTAR_UTILS_HPP_
#define MORTAR_UTILS_HPP_
namespace Opm {
namespace Elasticity {
@ -29,3 +41,5 @@ class MortarUtils {
}
}
#endif

View File

@ -9,7 +9,8 @@
//! \brief Representation of multi-point constraint (MPC) equations.
//!
//==============================================================================
#pragma once
#ifndef MPC_HH_
#define MPC_HH_
#include <map>
#include <vector>
@ -159,3 +160,5 @@ typedef std::map<int,MPC*> MPCMap;
}
}
#endif

View File

@ -9,7 +9,8 @@
//! \brief SuperLU preconditioner interface
//!
//==============================================================================
#pragma once
#ifndef SEQLU_HPP_
#define SEQLU_HPP_
#if HAVE_SUPERLU
#include <dune/istl/superlu.hh>
@ -75,3 +76,4 @@ class SeqLU : public Dune::Preconditioner<X,Y> {
};
#endif
#endif

View File

@ -9,7 +9,8 @@
//! \brief Classes for shape functions. Loosely based on code in dune-grid-howto
//!
//==============================================================================
#pragma once
#ifndef SHAPEFUNCTIONS_HPP_
#define SHAPEFUNCTIONS_HPP_
#include <dune/common/fvector.hh>
#include "dynmatrixev.hh"
@ -410,3 +411,5 @@ protected:
}
}
#endif

View File

@ -1,4 +1,16 @@
#pragma once
#ifndef UZAWA_SOLVER_HPP_
#define UZAWA_SOLVER_HPP_
//==============================================================================
//!
//! \file uzawa_solver.hpp
//!
//! \date Nov 9 2012
//!
//! \author Arne Morten Kvarving / SINTEF
//!
//! \brief Uzawa scheme helper class
//!
//==============================================================================
namespace Opm {
namespace Elasticity {
@ -54,3 +66,5 @@ class UzawaSolver : public Dune::InverseOperator<X,Y>
}
}
#endif