Skip to content
Snippets Groups Projects
Commit af87cd8d authored by Nicolas Marsic's avatar Nicolas Marsic
Browse files

FEMSolution now takes map of Value[Dof]

parent 489c6690
No related branches found
No related tags found
No related merge requests found
#include "Mapper.h" #include "Mapper.h"
#include "Exception.h"
#include "FunctionSpaceScalar.h" #include "FunctionSpaceScalar.h"
FunctionSpaceScalar::FunctionSpaceScalar(const GroupOfElement& goe, FunctionSpaceScalar::FunctionSpaceScalar(const GroupOfElement& goe,
size_t order){ size_t order){
if(order == 0)
throw Exception("%s: %s",
"FunctionSpaceScalar",
"Cannot have a order 0 scalar function space");
this->scalar = true; this->scalar = true;
this->form = 0; this->form = 0;
this->order = order; this->order = order;
...@@ -12,6 +18,10 @@ FunctionSpaceScalar::FunctionSpaceScalar(const GroupOfElement& goe, ...@@ -12,6 +18,10 @@ FunctionSpaceScalar::FunctionSpaceScalar(const GroupOfElement& goe,
FunctionSpaceScalar::FunctionSpaceScalar(const GroupOfElement& goe, FunctionSpaceScalar::FunctionSpaceScalar(const GroupOfElement& goe,
size_t order, std::string family){ size_t order, std::string family){
if(order == 0)
throw Exception("%s: %s",
"FunctionSpaceScalar",
"Cannot have a order 0 scalar function space");
this->scalar = true; this->scalar = true;
this->form = 0; this->form = 0;
this->order = order; this->order = order;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment