From a8c45c73bc81b9328fa9826a7c4a3938684c9b45 Mon Sep 17 00:00:00 2001 From: cindytsai Date: Thu, 30 May 2024 20:43:53 -0500 Subject: [PATCH] typo I think I accidentally removed index_offset in the example. --- example/amr-example/example.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/example/amr-example/example.cpp b/example/amr-example/example.cpp index c176f265..cc48e7ea 100644 --- a/example/amr-example/example.cpp +++ b/example/amr-example/example.cpp @@ -171,6 +171,7 @@ int main(int argc, char* argv[]) { param_yt.current_time = time; // simulation time in code units param_yt.dimensionality = 3; // dimensionality, support 3 only param_yt.refine_by = REFINE_BY; // refinement factor between a grid and its subgrid + param_yt.index_offset = 1; // grid id starts at 1. (default is 0-indexed) param_yt.num_grids = num_grids; // number of grids param_yt.num_grids_local = num_grids_local; // number of local grids param_yt.num_fields = num_fields + 1; // number of fields, addition one for derived field demo