From 04b04a20f3546b8023abf293f60faf3dfc995cfc Mon Sep 17 00:00:00 2001 From: akva Date: Wed, 1 Jun 2011 12:50:41 +0000 Subject: [PATCH] added: allow sim classes to name themself this will be useful when dumping several SIMs into one HDF5 file. we then need to be able to distinguish the bases for the different fields git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1021 e10b68d5-8a6e-419e-a041-bce267b0401d --- src/SIM/SIMbase.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SIM/SIMbase.h b/src/SIM/SIMbase.h index 40e358c7..609e2e00 100644 --- a/src/SIM/SIMbase.h +++ b/src/SIM/SIMbase.h @@ -121,6 +121,8 @@ public: //! \brief Returns a pointer to the problem-specific data object. const Integrand* getProblem() const { return myProblem; } + virtual std::string getName() const { return "SIMbase"; } + //! \brief Returns the number of primary solution fields. //! \param[in] basis Which basis to condsider when mixed methods (0 = both) size_t getNoFields(int basis = 0) const;