Skip to content
Snippets Groups Projects
Commit 9b0bbff5 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent f3dce8ce
No related branches found
No related tags found
No related merge requests found
......@@ -139,6 +139,7 @@ PView *GMSH_FiniteElementPlugin::execute(PView *v)
if(equation == "Laplace"){
solver<double> s;
if(!s.myAssembler->sizeOfR()) return 0;
gmshFunction<double> diffusivity(parameter);
gmshLaplaceTerm laplace(m, &diffusivity, 1);
for(unsigned int i = 0; i < groups[3][volume].size(); i++)
......@@ -151,6 +152,7 @@ PView *GMSH_FiniteElementPlugin::execute(PView *v)
}
else if(equation == "Helmholtz"){
solver<std::complex<double> > s;
if(!s.myAssembler->sizeOfR()) return 0;
gmshFunction<std::complex<double> > waveNumber(parameter);
gmshHelmholtzTerm helmholtz(m, &waveNumber, 1);
for(unsigned int i = 0; i < groups[3][volume].size(); i++)
......
......@@ -115,7 +115,7 @@ void PView::addStep(GModel *model, std::map<int, std::vector<double> > &data,
{
PViewDataGModel *d = dynamic_cast<PViewDataGModel*>(_data);
if(d) d->addData(model, data, d->getNumTimeSteps(), time, 1);
else Msg::Error("Cannot only step data to model-based datasets");
else Msg::Error("Can only add step data to model-based datasets");
}
PView::~PView()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment