nmannall
e818441730
Move iterations and timewindow to FDTDGrid
...
Grids need to know the number of iterations and the timewindow to
calculate waveform values. While waveforms are global in an MPI sense,
subgrids will calculate their own waveforms based on the dt value of the
subgrid.
2024-12-10 11:06:30 +00:00
nmannall
d20fc36d29
Move cmds_multiuse.py to new user_objects folder
2024-12-10 10:39:42 +00:00
nmannall
f9b73406ca
Refactor single use commands
2024-12-09 17:33:52 +00:00
nmannall
0869010fc6
Move cmds_singleuse.py to new user_objects folder
2024-12-09 17:27:59 +00:00
nmannall
b5c6045eaf
Add new abstract classes for UserObjects
2024-12-06 16:14:19 +00:00
nmannall
742c75fa5f
Sort non-compound materials by numID
2024-12-06 14:29:04 +00:00
nmannall
8db2383f38
Sort output materials by ID
2024-12-05 17:52:58 +00:00
nmannall
4f2b6f412d
Add class function to create compound material IDs
2024-12-05 17:46:13 +00:00
nmannall
8b038f09c3
Merge branch '37-hdf5-geometry-views' into 26-mpi-geometry-objects
2024-12-04 15:47:35 +00:00
nmannall
32392aba42
Change FDTDGrid.dl type to np.float64
2024-11-26 16:25:59 +00:00
nmannall
11008f9e97
Replace np.single with np.float32 for consistancy
2024-11-26 16:01:19 +00:00
nmannall
439c4cf487
Correct GeometryView size when step is non zero
2024-11-12 17:23:27 +00:00
nmannall
67d6d63072
Add gprmax metadata to geometry objects
2024-11-11 17:01:59 +00:00
nmannall
d09b209ba3
Fix data type for string datasets
2024-11-11 16:56:06 +00:00
nmannall
237c3bae4a
Split up VTKHDF classes into seperate files
2024-11-08 13:03:09 +00:00
nmannall
24863a1b9f
Create folder to split up VTKHDF functionality
2024-11-08 12:55:23 +00:00
nmannall
b6443f1599
Update GeometeryViewLines to use a VtkUnstructuredGrid
2024-11-08 12:40:49 +00:00
nmannall
b886e8e3ee
Add VtkUnstructuredGrid class
2024-11-08 12:16:43 +00:00
nmannall
ad50e2ff91
Update documentation for VtkHdfFile and VtkImageData
2024-11-08 12:12:19 +00:00
nmannall
d0cc25506a
Add validation to ensure vtkImageData files are 3D
2024-11-01 18:03:40 +00:00
nmannall
3bffeb6450
Change GeometryViewVoxel to use VTKHDF file format
2024-11-01 16:10:11 +00:00
nmannall
e8051bc72d
Use numpy arrays to store geometry view extents
2024-11-01 16:07:17 +00:00
nmannall
2eb54832d7
Create class to write VTKHDF Image Data files
2024-11-01 16:02:27 +00:00
nmannall
3e575d9c4d
Use np.single dtype rather than float
2024-11-01 15:55:36 +00:00
nmannall
35133525a7
Correct array slice boundaries for serial geometry objects
2024-10-14 10:32:11 +01:00
nmannall
272fc5d1ff
Remove extra materials output by serial geometry objects
2024-10-14 10:28:32 +01:00
nmannall
24157076a4
Specify dtype of h5 datasets when they are created
2024-10-11 14:17:29 +01:00
nmannall
4e1ac9f063
Merge branch 'mpi' into 26-mpi-geometry-objects
2024-10-11 13:57:43 +01:00
nmannall
15e8eb0e73
Fix model title not being broadcast to all ranks
2024-10-11 13:56:46 +01:00
nmannall
1572a8e823
Refactor writing a material to file to a seperate method
2024-10-10 17:49:54 +01:00
nmannall
4355586328
Add initial MPIGeometryObject implementation
2024-10-10 17:44:45 +01:00
nmannall
e7f5f6260f
Make comment explaining the extra step clearer
2024-10-10 17:42:58 +01:00
nmannall
e338167c8d
Add helper methods to MPIGrid for updating bounds
2024-10-10 17:41:38 +01:00
nmannall
a2475fdee3
Make the Material class sortable by ID
2024-10-10 17:34:49 +01:00
nmannall
405af94272
Ensure the same four component materials form the same ID.
2024-10-10 17:26:01 +01:00
nmannall
8e40fcaad3
Check for missing colon in input command
2024-10-04 17:27:29 +01:00
nmannall
1ad7ed64da
Replace deprecated warn method with warning
2024-10-04 16:41:55 +01:00
nmannall
9dd0d1b255
Add validation for snapshots to fix out of bounds memory access
2024-09-26 18:13:05 +01:00
nmannall
aef7737299
Change mpi and taskfarm flags to use -- convention
2024-08-16 15:49:20 +01:00
nmannall
93dadd9f1e
Reformat long strings in contexts.py
2024-08-16 15:32:34 +01:00
nmannall
c288e8eb7c
Add docstrings to all MPIGrid and FDTDGrid methods
2024-08-16 14:47:45 +01:00
nmannall
89873a5963
Fix bug when rank only contains the final snapshot step
2024-08-06 13:46:11 +01:00
nmannall
9a4d576284
Add additional Snapshot tests (2D slices of 3D model)
2024-08-06 13:44:37 +01:00
nmannall
d4276e44f9
Add has_neighbour helper method
2024-08-05 15:53:26 +01:00
nmannall
33670b3bd1
Merge branch 'devel' into mpi
2024-08-05 15:31:40 +01:00
Craig Warren
9107179d5a
Fixed bug with start/end/thickness of cylindrical sector
2024-07-24 15:13:56 +01:00
nmannall
bef3b8e6bd
Change pml cython functions to double precision
...
Reduces numerical differences between serial and MPI implementation
2024-07-24 10:33:44 +01:00
nmannall
bec547f201
Throw exception if unknown grid type
2024-07-18 17:38:06 +01:00
nmannall
960ced4761
Implement Snapshots for MPI
...
Works, except for small errors in the corners of 2D models. Requires
further investigation.
2024-07-18 17:33:27 +01:00
nmannall
5c9d59d7d1
Fix wrong grid coord when coordinate at edge of grid
...
When the global coordinate was in the far edge of the grid, the returned
grid coordinate would be one more than the maximum in at least one
dimension resulting in comm.Get_cart_rank failing.
2024-07-18 17:17:16 +01:00