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

copy time values when combining elements

parent 478bf08f
No related branches found
No related tags found
No related merge requests found
...@@ -630,13 +630,17 @@ bool PViewDataList::combineSpace(nameData &nd) ...@@ -630,13 +630,17 @@ bool PViewDataList::combineSpace(nameData &nd)
return false; return false;
} }
// copy interpolation marices // copy interpolation matrices
for(std::map<int, std::vector<fullMatrix<double>*> >::iterator it = for(std::map<int, std::vector<fullMatrix<double>*> >::iterator it =
l->_interpolation.begin(); it != l->_interpolation.end(); it++) l->_interpolation.begin(); it != l->_interpolation.end(); it++)
if(_interpolation[it->first].empty()) if(_interpolation[it->first].empty())
for(unsigned int i = 0; i < it->second.size(); i++) for(unsigned int i = 0; i < it->second.size(); i++)
_interpolation[it->first].push_back(new fullMatrix<double>(*it->second[i])); _interpolation[it->first].push_back(new fullMatrix<double>(*it->second[i]));
// copy time values
if(!i) Time = l->Time;
// merge elememts // merge elememts
dVecMerge(l->SP, SP); NbSP += l->NbSP; dVecMerge(l->VP, VP); NbVP += l->NbVP; dVecMerge(l->SP, SP); NbSP += l->NbSP; dVecMerge(l->VP, VP); NbVP += l->NbVP;
dVecMerge(l->TP, TP); NbTP += l->NbTP; dVecMerge(l->SL, SL); NbSL += l->NbSL; dVecMerge(l->TP, TP); NbTP += l->NbTP; dVecMerge(l->SL, SL); NbSL += l->NbSL;
...@@ -696,9 +700,9 @@ bool PViewDataList::combineSpace(nameData &nd) ...@@ -696,9 +700,9 @@ bool PViewDataList::combineSpace(nameData &nd)
tmp = nd.name; tmp = nd.name;
char name[256]; char name[256];
sprintf(name, "%s_Combine", tmp.c_str()); sprintf(name, "%s_Combine", tmp.c_str());
setName(name); setName(name);
setFileName(std::string(name) + ".pos"); setFileName(std::string(name) + ".pos");
return finalize(); return finalize();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment