- Timestamp:
- 2014-09-19T16:21:37+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2014/dev_r4765_CNRS_agrif/NEMOGCM/EXTERNAL/AGRIF/LIB/UtilNotGridDep.c
r2528 r4779 71 71 } 72 72 /* if variable does not exist, we add it */ 73 newvar=(listvar *) malloc(sizeof(listvar));74 newvar->var=(variable *) malloc(sizeof(variable));73 newvar=(listvar *)calloc(1,sizeof(listvar)); 74 newvar->var=(variable *)calloc(1,sizeof(variable)); 75 75 strcpy(newvar->var->v_nomvar,name); 76 Save_Length(name,4); 77 strcpy(newvar->var->v_commoninfile,mainfile); 78 Save_Length(mainfile,10); 76 strcpy(newvar->var->v_commoninfile,cur_filename); 79 77 strcpy(newvar->var->v_subroutinename,subroutinename); 80 Save_Length(subroutinename,11);81 78 newvar->var->v_notgrid = 1 ; 82 79 newvar->suiv = List_NotGridDepend_Var;
Note: See TracChangeset
for help on using the changeset viewer.