 
     int mx,my,mbc,maux,meqn,mwaves;
     double maxcfl;
-    double* membuffer_cpu, *membuffer_dev;
 
     double* maxcflblocks_dev;    
 
+    double *membuffer_cpu, *membuffer_dev;
     cudaclaw_fluxes_t *array_fluxes_struct_dev;
 
-
-    FCLAW_ASSERT(batch_size > 0);
+    cudaclaw_fluxes_t* fluxes;
 
     /* To get patch-independent parameters */
     fc2d_cudaclaw_options_t *clawopt;
     fclaw2d_clawpatch_options_t *clawpatch_opt;
+
+    /* ---------------------------------- start code ---------------------------------- */
+    FCLAW_ASSERT(batch_size > 0);
 
     clawopt = fc2d_cudaclaw_get_options(glob);
     mwaves = clawopt->mwaves;

    maux = clawpatch_opt->maux;
    meqn = clawpatch_opt->meqn;  

    cudaclaw_fluxes_t* fluxes = &(array_fluxes_struct[0]);
    size = batch_size*(fluxes->num + fluxes->num_aux);
    bytes = size*sizeof(double);



#include "../fc2d_cudaclaw_cuda.h"

#include "cudaclaw_allocate.h"  /* Needed for def of cudaclaw_fluxes_t */


#include <fclaw2d_patch.h>
#include <fclaw2d_global.h>
#include <fclaw2d_vtable.h>

#include <fclaw2d_clawpatch.h>
#include <fclaw2d_clawpatch_options.h>
#include <fc2d_cudaclaw_options.h>
