Changeset 9987 for branches/UKMO/dev_r5518_obs_oper_update_icethick/NEMOGCM/EXTERNAL/AGRIF/LIB/UtilNotGridDep.c
- Timestamp:
- 2018-07-23T11:33:03+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_obs_oper_update_icethick/NEMOGCM/EXTERNAL/AGRIF/LIB/UtilNotGridDep.c
r7960 r9987 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.