nmannall
62f6286876
Fix error when specifying receiver outputs
2024-07-01 17:37:16 +01:00
nmannall
f376d472ab
Fix error in building PML when split across ranks
...
The PML can only be split in two dimensions. I.e. an x PML layer can
only be split in the y and z dimension. The x dimension of the grid in
each rank should be greater than the thickness of the PML.
2024-06-25 09:51:47 +01:00
nmannall
bc860d7d7c
Regenerate TransmissionLine Regression file
2024-06-24 16:20:17 +01:00
nmannall
0508bf6631
Set source directory in MPI geometery tests
2024-06-24 15:36:38 +01:00
nmannall
0c29bb7c66
Add receiver to transmission line test
2024-06-24 15:36:17 +01:00
nmannall
5f94d34fd0
Revert Model to be a parameter and rename regression test files
2024-06-24 15:11:45 +01:00
Nathan Mannall
747eaba1cc
Refactor reframe tests to use new base classes
2024-06-20 17:14:12 +01:00
nmannall
0e6d13898c
Refactor base reframe tests
2024-06-18 11:55:51 +01:00
nmannall
bbfac07fe6
Limit numpy to version less than 2.0
2024-06-18 11:00:33 +01:00
nmannall
40a3c9438d
Merge branch 'devel' into mpi
2024-06-11 18:42:05 +01:00
nmannall
39fd9e0238
Update MPI tests to run on two nodes not one
2024-06-11 18:17:22 +01:00
nmannall
005a8cc4e5
Avoid divide by 0 when calculating MPI rank from coordinate
2024-06-11 18:15:56 +01:00
nmannall
41dc013c69
Check grid dimensions large enough for MPI tasks
2024-06-11 18:14:46 +01:00
nmannall
e66e18a473
Remove gnx properies from Model
2024-06-11 18:10:12 +01:00
nmannall
24145d46d7
Add new tests containing geometry
2024-06-05 10:12:07 +01:00
nmannall
95059d44a3
Use test hash in regression file names
...
The reframe short name is prefered to the unique name as it uses the
test hash. This will stay constant for a given test even if other tests
are created, or removed.
2024-06-05 10:01:54 +01:00
Craig Warren
e842d8a2f6
Tidied import sorting
2024-06-03 21:01:29 +01:00
Craig Warren
108fdb53e1
Fixed check_averaging circular import and sorted import ordering
2024-06-03 20:57:58 +01:00
nmannall
f8f5a64059
Add MPI reframe tests
2024-05-31 17:21:45 +01:00
nmannall
1931617a49
Add initial MPI implementation
2024-05-31 17:21:00 +01:00
nmannall
d8005d35d8
Pass iteration to CUDA and OpenCL update methods
2024-05-31 17:18:35 +01:00
nmannall
a68b7e0583
Store receiver coordinates as a numpy array
2024-05-23 13:44:41 +01:00
nmannall
8e39207272
Add halo swap function to MPIGrid
...
Distribute Model to each rank
2024-05-23 11:47:06 +01:00
nmannall
d004f64d81
Check SimulationConfig.args has attribute subgrid
...
Subgrid attribute won't exist when gprMax is called from the commandline
2024-05-23 11:18:44 +01:00
nmannall
818418c952
Merge branch 'refactor-create-internal-objects' into mpi
2024-05-21 14:45:45 +01:00
nmannall
b8b17a83bc
Rename variables to use cone instead of cylinder
2024-05-21 14:40:51 +01:00
nmannall
b893a83632
Revert "Added averaging check for API to convert y/n to True/False"
...
This reverts commit 23c88cee25
.
Reverting because this commit caused a circular dependency between
hash_cmds_geometry.py and the UserObject files in cmds_geometry/
2024-05-21 14:39:23 +01:00
nmannall
98e74c0c7a
Merge branch 'mpi' into refactor-create-internal-objects
2024-05-21 14:20:44 +01:00
nmannall
c23a2c2a40
Merge branch 'devel' into mpi
2024-05-21 14:07:37 +01:00
nmannall
bf386a15b4
Fix subgrid updater needing iteration count
...
SubgridUpdater now keep track of the number of iterations. Override
update methods to pass the current iteration and increment it in the
correct place. Pass the Model to create_updates as need access to the
main grid as well as subgrids.
2024-05-21 12:01:29 +01:00
nmannall
6033d19e74
Initialise FDTDGrid.dl
2024-05-21 11:58:44 +01:00
nmannall
a4ed515a00
Check if should use model or subgrid iterations
...
A subgrid may have a different number of iterations to the main model.
The correct one should be used when creating sources.
2024-05-21 11:56:27 +01:00
nmannall
5a29d298b1
Use Model properties rather than access G directly
2024-05-21 10:26:24 +01:00
nmannall
06c8908c2c
Move srcsteps and rxsteps into Model class
2024-05-21 10:25:56 +01:00
nmannall
d25ceb281d
Fix materials only built when have dispersive materials
2024-05-20 18:09:20 +01:00
nmannall
c3e43d0283
Fix calculating waveform values Magnetic Dipole sources
...
Should pass model.iterations rather than model.iteration which will
always be 0
2024-05-20 18:07:40 +01:00
nmannall
92c3f9e8c4
Pass Model to write_hdf5_outputfile not FDTDGrid
2024-05-20 18:06:50 +01:00
nmannall
11ff3f6df6
Pass iteration to magnetic source updates
2024-05-20 18:05:40 +01:00
nmannall
31d20dcdd3
Fix regression due to precision of FDTDGrid.dl
...
np.single caused many extra decimal places that using built in float
as the dtype does not.
2024-05-20 16:28:32 +01:00
nmannall
543b6ea009
Pass iteration to update functions that need it
2024-05-20 16:16:53 +01:00
nmannall
ce1e811fb1
Build subgrids from Model and simplify FDTDGrid.build()
...
Subgrids are no longer contained within an FDTDGrid. The FDTDGrid.build()
function now just builds the grid it is called on. The Model class now
checks memory requirements etc.
2024-05-20 16:00:47 +01:00
nmannall
d4a3f3e3a4
Pass correct Model or FDTDGrid object to UserObjects
2024-05-20 15:40:00 +01:00
nmannall
1f71bfa858
Set FDTDGrid dimensions in Domain UserObject
2024-05-20 15:23:38 +01:00
nmannall
f76919fd81
Move mixing models back into FDTDGrid
2024-05-20 15:22:54 +01:00
nmannall
388e025aed
Revert "Refactor remaining UserObjectGeometry build processes"
...
This reverts commit 444f2a6a7f
.
2024-05-20 15:20:20 +01:00
nmannall
c63b8f3229
Revert "Refactor AddGress UserObject build process"
...
This reverts commit 1d7b5ff0f9
.
2024-05-20 15:16:59 +01:00
nmannall
672dd44094
Move materials back into FDTDGrid class
...
Materials are used to by the grid to build PMLs and components as well
as creating new materials to voltage sources. Additionally, didn't parts
of the grid will need a different subset of materials. Storing in Grid
could in the future reduce data duplication and the duplicate
computation looks to be minimal.
2024-05-20 15:11:41 +01:00
nmannall
b7e9bd7678
Revert "Setup UserObjectGeometry to build using a Model"
...
This reverts commit 07052347de
.
2024-05-20 15:04:37 +01:00
nmannall
c323cea83c
List numpy arrays in FDTDGrid constructor
...
More clearly lists the properties of an FDTDGrid without having to read
every method.
2024-05-17 17:20:35 +01:00
nmannall
1b24a72ca4
Fix validation for stepping sources and receivers
...
Validation was using the source step size - should be the step size
passed to the _update_positions function.
2024-05-17 16:39:38 +01:00