提交图

3265 次代码提交

作者 SHA1 备注 提交日期
Nathan Mannall
fa93dafcaf Actually wait for Isend calls to distribute material IDs 2025-06-19 15:15:55 +01:00
Nathan Mannall
0d0615c164 Add factory functions to grids for fractal surfaces 2025-06-19 15:15:55 +01:00
nmannall
cb1ecd8d9b Seperate write and read geometry object tests 2025-06-19 15:15:55 +01:00
Nathan Mannall
5f6656741b Use asynchronous MPI calls for halo exchanges 2025-06-19 15:15:55 +01:00
Nathan Mannall
742678b705 Add some missing type hints 2025-06-19 15:15:54 +01:00
Nathan Mannall
8c15235f37 Add factory functions to grids for fractal volumes 2025-06-19 15:15:54 +01:00
Nathan Mannall
5ee013d9fe Create shared MPI fractal functions 2025-06-19 15:15:54 +01:00
Nathan Mannall
548cf6599b Remove add_surface_roughness_half test
- The functionality this tested is better tested by the new
  add_surface_roughness_boundaries test
2025-06-19 15:15:54 +01:00
Nathan Mannall
17c05f5286 Fix bug when fractal surfaces at an MPI boundary
- Add a new test that better tests this scenario
2025-06-19 15:15:54 +01:00
Nathan Mannall
b73cd93d75 Fix bug when modifications applied to multiple fractal boxes 2025-06-19 15:15:54 +01:00
Nathan Mannall
33f8e097c8 Remove 'fractal_box_half' test
- The functionality this was supposed to test is better covered by the
  new 'fractal_box_boundaries' test
2025-06-19 15:15:54 +01:00
Nathan Mannall
0c7c5447a3 Fix bug where fractal box at MPI boundary 2025-06-19 15:15:54 +01:00
Nathan Mannall
34188f8f3d Update add_grass user object for parallel build 2025-06-19 15:15:54 +01:00
Nathan Mannall
ed76cfa4c6 Remove use of logger.exception outside try except block 2025-06-19 15:15:54 +01:00
Nathan Mannall
56fff1c38b Fix bug when original_stop is less than original_start
- Add properties to access and set originalxs etc
- If original_stop is less than original_start (e.g. when both are less
  than the lower extent of the local grid), it could cause the values of
  maskxs etc in generate_volume_mask to be negative. This could cause
  incorrect slicing of self.mask
2025-06-19 15:15:54 +01:00
Nathan Mannall
cdc209d90a Update add_surface_water for parallel build 2025-06-19 15:15:54 +01:00
Nathan Mannall
88a4592764 Add MPI test for add_surface_water user object 2025-06-19 15:15:54 +01:00
Nathan Mannall
dd70f06b7b Remove use of logger.exception outside try except block 2025-06-19 15:15:54 +01:00
Nathan Mannall
80db43bf6b Limit original start and stop to local grid
- Remove unnecessary redefinition of original start and stop
2025-06-19 15:15:54 +01:00
Nathan Mannall
3a6f459179 Add MPIFractalSurface class 2025-06-19 15:15:54 +01:00
Nathan Mannall
51abdf31c0 Check if fractal volume starts beyond upper bound 2025-06-19 15:15:54 +01:00
Nathan Mannall
4882927c4b Add new MPI surface roughness geometry tests 2025-06-19 15:15:54 +01:00
Nathan Mannall
5c5c865064 Remove unnecessary initialisation of offset 2025-06-19 15:15:54 +01:00
Nathan Mannall
bf11148370 Always run receiver regression tests last
This means regression checks for geometry objects etc will run (and
potentially fail) first. This is useful as those regression tests give
more information as to what has gone wrong that the receiver regression
tests.
2025-06-19 15:15:54 +01:00
Nathan Mannall
6bad4149f7 Move fractal objects into seperate files 2025-06-19 15:15:54 +01:00
Nathan Mannall
857d9b6e54 Create fractals folder 2025-06-19 15:15:54 +01:00
Nathan Mannall
93902ea36e Create tests for add_grass user object 2025-06-19 15:15:53 +01:00
Nathan Mannall
3f9e7ab72b Add properties to access start, stop and size 2025-06-19 15:15:53 +01:00
Nathan Mannall
c6358d2c05 Output metadata in serial so VLEN strings can be used 2025-06-19 15:15:53 +01:00
Nathan Mannall
493db241d7 Remove shifting zero frequency from fractal surfaces 2025-06-19 15:15:53 +01:00
Nathan Mannall
a75ab2c01f Allow users to specify mode to open VTKHDF files 2025-06-19 15:15:53 +01:00
Nathan Mannall
2c8c14c73d Correct shifting of positional vector 2025-06-19 15:15:53 +01:00
Nathan Mannall
12477223b3 Use variable length strings in VTKHDF files 2025-06-19 15:15:53 +01:00
Nathan Mannall
c57f24536d Remove test case designed to fail 2025-06-19 15:15:53 +01:00
Nathan Mannall
fc547ab75e Create add_surface_water regression tests 2025-06-19 15:15:53 +01:00
Nathan Mannall
1deb32cdb3 Add properties to access start, stop, and size 2025-06-19 15:15:53 +01:00
Nathan Mannall
49ed537bda Fix bug when comparing materials
- The functions for comparing materials assumed non compound materials
  always have a numerical ID less than compound materials. This is
  usually true, but not always. E.g. when using the add_surface_water
  user object. This can create the 'water' material after compound
  materials have been created by a fractal box
2025-06-19 15:15:53 +01:00
Nathan Mannall
540207871e Improve variable names and documentation 2025-06-19 15:15:53 +01:00
Nathan Mannall
4d061ef91f Add add_surface_roughness tests 2025-06-19 15:15:53 +01:00
Nathan Mannall
4570aa4d09 Consolidate MPIFractalVolume implementation 2025-06-19 15:15:53 +01:00
Nathan Mannall
ecac327840 Use MPI datatypes to distribute fractal volumes 2025-06-19 15:15:53 +01:00
Nathan Mannall
7f64987832 Remove GridView from MPIFractalVolume
- Add initial implementation to redistribute the fractal volume to the
  correct rank
2025-06-19 15:15:53 +01:00
Nathan Mannall
adb357c2cc Initial MPIFractalBox implementation 2025-06-19 15:15:53 +01:00
Nathan Mannall
eb88b954af Update MPI fractal box tests 2025-06-19 15:15:53 +01:00
Nathan Mannall
6cc70afb6e Remove shifting of zero frequency component
- Rather than directly shifting the zero frequency component of the fft,
  generate_fractal3D shifts the positional vector of each index as if
  the zero frequency had been shifted to the centre
- Changing generate_fractal3D to do this will make the MPI
  implementation easier
2025-06-19 15:15:53 +01:00
Nathan Mannall
5b5a325c23 Correct regression check file for fractal_box_half 2025-06-19 15:15:52 +01:00
Nathan Mannall
8a204e5f9d Add geometry objects to fractal box tests 2025-06-19 15:15:52 +01:00
Nathan Mannall
d68d1d4973 Add new fractal box tests 2025-06-19 15:15:51 +01:00
Craig Warren
e986fdb093 MPI RTD 2025-05-30 21:28:10 +01:00
Craig Warren
1d301b7509 Try other MPI for RTD 2025-05-30 21:22:58 +01:00