3290 次代码提交

作者 SHA1 备注 提交日期
Nathan Mannall
7705b15cb7 Add discrete plane wave reframe test 2025-03-18 11:01:35 +00:00
Nathan Mannall
bc70d074a9 Fix snapshots always defaulting to .vti files 2025-03-17 16:53:00 +00:00
Craig Warren
d413eeec57 Updated to latest packages 2025-03-17 16:14:32 +00:00
nmannall
859c4d7fe0 Add overrides to show or hide progress bars 2025-03-17 13:24:59 +00:00
nmannall
18138352c1 Allow user to specify output data file 2025-03-17 13:12:01 +00:00
Nathan Mannall
4451f43747 Checkout reframe tests from mpi branch 2025-03-17 12:17:13 +00:00
Nathan Mannall
d4a757902c Update pre-commit recipe to match mpi branch 2025-03-17 12:16:33 +00:00
Nathan Mannall
5e583160a2 Update .gitignore 2025-03-17 12:15:13 +00:00
Nathan Mannall
cb45133e3b Add test for fractal box
- Fractal boxes will build without error using the parallel build
  process, however they are not correct. Each rank builds its own part
  of the fractal box however there is no continuity across MPI
  boundaries
2025-03-17 11:52:40 +00:00
Craig Warren
a248f6eca3 Grammar correction to discrete plane wave 2025-03-17 11:44:59 +00:00
Craig Warren
c157c0b8cd Updated wording in discrete plane wave entry. 2025-03-17 11:44:02 +00:00
Craig Warren
e6adc592ac Bug fixes for plane wave 2025-03-12 11:40:07 +00:00
Craig Warren
ff08f68733 Doc and comment updates 2025-03-12 10:39:16 +00:00
Craig Warren
5876c99130 Further additions to DPW command 2025-03-11 09:05:03 +00:00
Craig Warren
604e99671c Formatting 2025-03-11 08:58:38 +00:00
Craig Warren
697ca14c7f Removed some optional params from DPW hash command 2025-03-11 08:58:27 +00:00
Craig Warren
3a198b0921 Initial docs for plane wave 2025-03-10 21:38:46 +00:00
Craig Warren
fadc9402d2 Formatting updates. 2025-03-10 21:22:49 +00:00
Craig Warren
b954969980 Updated name of plane wave Cython module 2025-03-10 14:50:06 +00:00
Craig Warren
05a879d26f Formatting cleanups 2025-03-10 14:47:13 +00:00
Craig Warren
ec0f87575e Formatting 2025-03-10 14:22:22 +00:00
Craig Warren
3db3843855 Cleanups, formatting and comments. 2025-03-10 14:22:13 +00:00
Craig Warren
ad46bb336c Tidied imports 2025-03-10 13:49:06 +00:00
Craig Warren
ba36a5efb3 Revert name to gprMax-devel 2025-03-10 13:39:40 +00:00
Craig Warren
ac24757ebc Merge pull request #373 from AdittyaPal/devel
[GSoC 2023] Implementing a discrete plane wave source
2025-03-10 13:38:49 +00:00
Craig Warren
4fe9fd52d7 Merge branch 'devel' into devel 2025-03-10 13:38:25 +00:00
Nathan Mannall
e81a498832 Fix incorrect size and slice when step != 1 2025-03-07 12:44:39 +00:00
Nathan Mannall
9d19bbb2bb Remove unnecessary import statement 2025-03-07 12:44:09 +00:00
Nathan Mannall
79bc567022 Update snapshots for parallel build
- Snapshots now use the GridView class
- Snashot type hints have been removed from FDTDGrid and MPIGrid as this
  would cause circular imports
2025-03-07 12:42:34 +00:00
Craig Warren
eaef3c2127 Fixed bug with missing halftdt waveform array required for VoltageSource with resistance. 2025-03-06 22:03:06 +00:00
Nathan Mannall
ed649fa699 Write geometry view metadata before material data
- Writing metadata requires collective communication. This should be
  completed first to avoid ranks having to wait for all other ranks to
  complete the longer I/O operation of writing out the material data.
2025-03-06 15:31:37 +00:00
Nathan Mannall
44d0a4d333 Log a warning if geometry only but not geometry to output
- It is possible for an MPI rank to have no geometry to output while
  others do. However it is still worth logging a warning as the work
  is not being well distributed across the ranks.
- For non-MPI runs, a warning still notifies them of a problem.
2025-03-06 15:26:11 +00:00
Nathan Mannall
86f2bb9124 Replace len with sn.len for _DeferredExpression 2025-03-06 15:24:41 +00:00
Nathan Mannall
4cd9f01f71 Fix bug creating MPI Cart comm ending at a grid boundary 2025-03-06 10:53:30 +00:00
Nathan Mannall
5669002757 Add memory usage to performance report
- Update calculation of runtime to query SLURM database
- Improve regex to extract gprMax reported simulation time
2025-03-05 18:29:41 +00:00
Nathan Mannall
e6262339f5 Stop mapping materials for voxel geometry views
- Voxel geometry views do not use compound/averaged materials. Therefore
  materials are guaranteed to be correctly ordered in both the serial
  and MPI implementations as the materials used have all be added from
  the Scene/input file.
2025-03-04 16:24:42 +00:00
Nathan Mannall
4c841eeb57 Update geometry view regression check files
- Geometry views no longer use variable length strings.
- Fine geometry views (GeometryViewLines) now correctly order materials
  (alphabetically by ID).
2025-03-04 16:04:44 +00:00
Nathan Mannall
94ccca9517 Commit missed documentation update 2025-03-04 16:03:24 +00:00
Nathan Mannall
289178a3d0 Update geometry views for parallel build
- Sources and receivers now set their ID using a static point so the
  value is the same when using the MPI implementation.
- The model has new functions to create geometry objects and geometry
  views.
- Grid views create their own MPI communicator. This means when creating
  a grid view, or an object containing a grid view, it is the creators
  responsibility to call `comm.Split(MPI.UNDEFINED)` for ranks not
  creating the grid view.
- There is a new MPIMetadata class for managing geometry view metadata.
- Ranks can create field data datasets in VTKHDF files without writing
  any data.
- The VtkHdfFile class now correctly handles string datatypes.
2025-03-04 15:54:50 +00:00
Nathan Mannall
e9bc7d3978 Fix bug when objects start in a positive halo
Objects with a thickness (triangles and circular sectors) can no longer
extend beyond the grid in the dimension they are aligned to.

Building these objects where the lower extent is aligned with a positive
halo, no longer corrupts memory due to out of bounds memory access
2025-02-21 18:29:11 +00:00
Nathan Mannall
aecf08f269 Add test for a cylindrical sector starting in a positive halo 2025-02-21 10:44:13 +00:00
Nathan Mannall
a970593dc6 Add new rigid Box geometry test 2025-02-21 10:40:04 +00:00
Nathan Mannall
6fbb94f058 Fix bug when Edge or Plate is in a positive halo
Edges and plates are no longer built in the positive halo as they are
not needed. Previously this caused a memory corruption as the cython
functions were performing out of bounds memory access in the rigidE
and rigidH arrays.
2025-02-21 10:37:20 +00:00
Nathan Mannall
2c7c07885b Add new Edge geometry tests 2025-02-21 10:36:44 +00:00
Nathan Mannall
66df9e4afb Correct array size calculation 2025-02-14 16:38:36 +00:00
Nathan Mannall
5714ca52ad Update Edge geometry for parallel build 2025-02-14 16:10:32 +00:00
Nathan Mannall
b1cc2c3204 Add debug logging to GridView 2025-02-14 16:09:23 +00:00
Nathan Mannall
fea6243173 Update triangles for parallel build 2025-02-14 16:08:01 +00:00
Nathan Mannall
b0ecf50688 Correctly calculate new thickness 2025-02-14 11:54:24 +00:00
Nathan Mannall
23d5735c8a Write geometry object instead of view 2025-02-14 11:52:44 +00:00