Commit 80954e06 authored by Felipe Bordeu's avatar Felipe Bordeu
Browse files

Ensure data is released

parent c81b9a16
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ struct LocalSpace {
    }
  }
  void SetvalNI(const int& integrationPoint, CBasicFloatType* pd) {
    delete this->valN[integrationPoint];
    this->valN[integrationPoint] = new MapMatrixDDD(pd, this->numberOfShapeFunctions, 1);
  }
  void RelseaseData() {
@@ -63,6 +64,7 @@ struct LocalSpace {
  }
  ~LocalSpace() { this->RelseaseData(); }
  void SetvaldphidxiI(const int& integrationPoint, CBasicFloatType* pd) {
    delete this->valdphidxi[integrationPoint];
    this->valdphidxi[integrationPoint] = new MapMatrixDDD(pd, this->dimensionality, this->numberOfShapeFunctions);
  }

+3 −0
Original line number Diff line number Diff line
@@ -151,6 +151,9 @@ extra_link_args = {

if debug:
    extra_compile_args["unix"].extend([ "-g3", "-O0", "-DDEBUG=1", "-UNDEBUG", "-gdwarf-4", "-gstrict-dwarf"])
    extra_compile_args["msvc"].extend([ "/Z7","/DEBUG"])
    extra_link_args["msvc"].extend(["/DEBUG"])


class GenerateCommand(Command):
    description = "custom generate command that generate the c++ sources from python "