Commit fea28d80 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

ensure that allocatable_double_2d types are initialized

parent afed8bb9
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -13,15 +13,16 @@ namespace LAMMPS_NS {

typedef enum { FCC, BCC, HCP, DIM, DIA, B1, C11, L12, B2 } lattice_t;

typedef struct
{
struct allocatable_double_2d {
  allocatable_double_2d() : dim1(0),dim2(0),ptr(0) {};
  int dim1, dim2;
  double* ptr;
} allocatable_double_2d;
};

class MEAM {
 public:
  MEAM(){};

  ~MEAM() {
    meam_cleanup_();
  }