diff options
author | Ilhan Özgen Xian <iozgen@lbl.gov> | 2021-06-25 18:04:00 -0700 |
---|---|---|
committer | Ilhan Özgen Xian <iozgen@lbl.gov> | 2021-06-25 18:04:00 -0700 |
commit | 1293cf7fb6ec299e5ae57e0960199148f6e79b1c (patch) | |
tree | 60c4332e3019caef7d6a2f023dad7124bb2d77e7 | |
parent | 2ebc62d44c12056846555ac48043e3f4d6e82b54 (diff) |
-rw-r--r-- | header.hpp | 2 | ||||
-rw-r--r-- | input/options.input | 24 | ||||
-rw-r--r-- | mesh.cpp | 4 |
3 files changed, 15 insertions, 15 deletions
@@ -22,7 +22,7 @@ #define MAXTIMESTEP 864000.0 // (s) ten days #define EPS 1.0e-10 -#define CFL 0.5 +#define CFL 10.0 #define DIM 3 #define N_NEIGHBORS 5 diff --git a/input/options.input b/input/options.input index e5a1560..ab297f6 100644 --- a/input/options.input +++ b/input/options.input @@ -1,16 +1,16 @@ // input file for agent provocateur -n_agent : 100 // Number of agents -fuzz : 0.1 // Fuzzy equivalence constant, used for geometry -seed : 108 // Random seed -n_iteration : 5000 // Number of iteration steps +n_agent : 100 // Number of agents +fuzz : 0.1 // Fuzzy equivalence constant, used for geometry +seed : 108 // Random seed +n_iteration : 1000 // Number of iteration steps -surfacemesh : ./test/visdump_surface_mesh.h5 // Surface mesh file -surfacedata : ./test/visdump_surface_data.h5 // Surface data file -surfacetime : 0.0 5e6 10e6 15e6 20e6 // Time levels -surfacegroup : 0 3746 6484 9372 11841 // Group names for surface +surfacemesh : ./001-run/simrun-000004/ats_vis_surface_mesh.h5 // Surface mesh file +surfacedata : ./001-run/simrun-000004/ats_vis_surface_data.h5 // Surface data file +surfacetime : 0.0 172800.0 432000.0 518400.0 691200.0 // Time levels +surfacegroup : 0 106 116 123 128 // Group names for surface -subsurfacemesh : ./test/visdump_mesh.h5 // Subsurface mesh file -subsurfacedata : ./test/visdump_data.h5 // Subsurface data file -subsurfacetime : 0.0 5e6 10e6 15e6 20e6 // Time levels -subsurfacegroup : 0 3746 6484 9372 11841 // Group names for subsurface +subsurfacemesh : ./001-run/simrun-000004/ats_vis_mesh.h5 // Subsurface mesh file +subsurfacedata : ./001-run/simrun-000004/ats_vis_data.h5 // Subsurface data file +subsurfacetime : 0.0 432000.0 864000.0 1296000.0 1728000.0 // Time levels +subsurfacegroup : 0 116 130 191 230 // Group names for subsurface @@ -166,10 +166,10 @@ void Mesh::handle_surface_node_data(H5::H5File fp) for (int i = 0; i < rank; i ++) std::cout << "[~~~>] Dimension in " << i << " of nodes: " << dims_n[i] << std::endl; #endif - + double *data_n = new double[dims_n[0]*dims_n[1]]; dataset_n.read(data_n, H5::PredType::IEEE_F64LE); - + nodes.resize(dims_n[0]); for (size_t i = 0; i < dims_n[0]; i ++) { |