/* ///////////////////////////////////////////////////////////////////// */ /* Authors: A. Mignone (mignone@to.infn.it) */ /* V. Cesare (valentina.cesare@inaf.it) */ /* D. Goz (david.goz@inaf.it) */ /* */ /* Date : June 2024 */ /* */ /* ///////////////////////////////////////////////////////////////////// */ #include "tools.h" /* ********************************************************************* */ MyData **Allocate_2DdblArray(const int nx, const int ny) /* * Allocate memory for a double precision array with * nx rows and ny columns *********************************************************************** */ { MyData **buf = malloc(nx * sizeof(MyData *)); assert(buf != NULL); buf[0] = (MyData *) malloc(nx * ny * sizeof(MyData)); assert(buf[0] != NULL); for (int j=1 ; j