Commit 557ae2f9 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Replaced variable length array by std::vector.

parent e6a4890c
......@@ -1673,9 +1673,9 @@ check_mem(list_t *kvl, char *project_id)
strcpy(ripvaluechar[len], "0\0");
if ( strcmp(project_id, "CORDEX") == 0 )
kv_insert_a_val(kvl, (char *) "driving_model_ensemble_member", (char *)"r0i0p0", 1);
kv_insert_a_val(kvl, (char *) "member", (char *)"r0i0p0", 1);
kv_insert_a_val(kvl, (char *) "member", (char *)"r0i0p0", 1);
}
else
else
{
for (int i = 0; i < ripcharlen; i++)
{
......@@ -3280,10 +3280,10 @@ check_and_gen_bounds_curv(int gridID, int totalsize, int xnbounds, int xlength,
|| (IS_EQUAL(xcell_bounds[1], 0.0) && IS_EQUAL(xcell_bounds[2], 0.0))
|| (IS_EQUAL(ycell_bounds[1], 0.0) && IS_EQUAL(ycell_bounds[2], 0.0)))
{
double halflons[xlength + 1][ylength];
double halflats[xlength][ylength + 1];
double halflonsOnhalflats[xlength + 1][ylength + 1];
double halflatsOnhalflons[xlength + 1][ylength + 1];
VECTOR_2D(double, halflons, xlength + 1, ylength);
VECTOR_2D(double, halflats, xlength, ylength + 1);
VECTOR_2D(double, halflonsOnhalflats, xlength + 1, ylength + 1);
VECTOR_2D(double, halflatsOnhalflons, xlength + 1, ylength + 1);
/**/
/*************Half-lons with 360-0 transmission check**************/
......@@ -5169,7 +5169,7 @@ write_variables(list_t *kvl, int *streamID, struct mapping vars[], int miptab_fr
if (Options::cdoVerbose) cdoPrint("10.2. Start to get chunk files.");
char **chunk_files;
if ( ifreq > 0 && ifreq != 7 )
if ( ifreq > 0 && ifreq != 7 )
chunk_files = get_chunk_files(kvl, vars, vlistID, ifreq, time_axis, calendar, miptab_freqptr, project_id);
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment