Fix Funcfl reference to avoid segfaults

Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
Rafael Ravedutti
2021-10-26 01:40:02 +02:00
parent 40ddc9ad50
commit 99d6a4bdd8
3 changed files with 37 additions and 14 deletions

View File

@@ -43,7 +43,7 @@ typedef struct {
MD_FLOAT *frho, *rhor, *z2r;
MD_FLOAT *rhor_spline, *frho_spline, *z2r_spline;
MD_FLOAT *cutforcesq;
Funcfl* file;
Funcfl file;
} Eam;
void initEam(Eam* eam, const char* input_file, int ntypes);