fixed: reading nodes from HDF5 file
we need to instance the ProcessAdm and not pass a temporary. holding a reference to a temporary is not enough to keep it alive, which means it is killed and consequently the reader holds an invalid reference.
This commit is contained in:
parent
95afb36eb2
commit
9a4c48eac4
@ -148,7 +148,8 @@ bool SIMinput::parseGeometryTag (const TiXmlElement* elem)
|
|||||||
else if (strstr(file,".hdf5"))
|
else if (strstr(file,".hdf5"))
|
||||||
{
|
{
|
||||||
IFEM::cout <<"\tReading global node numbers from "<< file << std::endl;
|
IFEM::cout <<"\tReading global node numbers from "<< file << std::endl;
|
||||||
HDF5Reader hdf5(file,ProcessAdm());
|
ProcessAdm adm;
|
||||||
|
HDF5Reader hdf5(file,adm);
|
||||||
const char* field = elem->Attribute("field");
|
const char* field = elem->Attribute("field");
|
||||||
for (int i = 1; i <= nGlPatches; i++)
|
for (int i = 1; i <= nGlPatches; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user