From 1acae483cb627a6ca84344fab0f57229fd43ed56 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Thu, 4 Aug 2016 17:42:19 +0200 Subject: [PATCH] Correction of bug for in situ --- src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx b/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx index 30a1c73e..afa6ca1e 100644 --- a/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx +++ b/src/Plugins/MEDReader/IO/MEDFileFieldRepresentationTree.cxx @@ -1105,6 +1105,8 @@ int MEDFileFieldRepresentationTree::getMaxNumberOfTimeSteps() const void MEDFileFieldRepresentationTree::loadInMemory(MEDFileFields *fields, MEDFileMeshes *meshes) { + _ms=meshes; meshes->incrRef(); + _fields=fields; fields->incrRef(); if(!((MEDCoupling::MEDFileFields *)fields)) { fields=BuildFieldFromMeshes(meshes); -- 2.39.2