Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v3 compatible ASTE version #182

Merged
merged 82 commits into from
Mar 22, 2024
Merged
Changes from 1 commit
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
50cce58
Update installation instructions for the release
davidscn Oct 5, 2022
3798f16
Add Halton Mesh Generator (#155)
kursatyurt Nov 8, 2022
999137c
Add a unit grid generator (#154)
fsimonis Nov 8, 2022
aec8db9
Add connectivity using Delaunay Triangulation
kursatyurt Nov 13, 2022
7e66585
Fix format
kursatyurt Nov 13, 2022
b4acb3c
Merge `initialize` and `initializeData`
davidscn Nov 18, 2022
97e2a23
Handle ASTE and preCICE logging (#136)
fsimonis Nov 18, 2022
ab6fe47
Update from C++14 to C++17 Standard (#138)
kursatyurt Nov 18, 2022
bb6677e
Fix compiler warning about parenthesis
davidscn Nov 18, 2022
ac73b2b
Change boost::fs to std::fs (#160)
kursatyurt Nov 21, 2022
0556251
Handle ASTE and preCICE logging (#136)
fsimonis Nov 18, 2022
863ea1b
Update from C++14 to C++17 Standard (#138)
kursatyurt Nov 18, 2022
a1e51ee
Fix compiler warning about parenthesis
davidscn Nov 18, 2022
c58dc12
Change boost::fs to std::fs (#160)
kursatyurt Nov 21, 2022
0f15786
Replace actions by explicit calls
davidscn Dec 9, 2022
0116dad
Adapt connectivity definition
davidscn Dec 9, 2022
f00e27e
Split use-mesh xml tags
davidscn Dec 13, 2022
5833002
Merge remote-tracking branch 'origin/halton_connectvity' into precice-v3
davidscn Dec 16, 2022
5bfbed9
Add dependabot (#164)
davidscn Dec 19, 2022
859558b
Bump actions/checkout from 2 to 3 (#165)
dependabot[bot] Dec 19, 2022
081453f
Bump actions/setup-python from 3 to 4 (#166)
dependabot[bot] Dec 19, 2022
d698831
Update preCICE packages in CI (#167)
davidscn Dec 19, 2022
8702e71
Try experimental preCICE setup actions
davidscn Jan 30, 2023
408b922
Merge branch 'develop' into precice-v3
davidscn Jan 30, 2023
6692085
Update some hooks
davidscn Jan 30, 2023
e796634
Fix typo in README
uekerman Feb 6, 2023
380b8f2
ASTE: Minor fix in installation instructions
MakisH Feb 22, 2023
a518b4a
Fixed wrong variable in Franke3D function
Mar 13, 2023
2b33421
Replace ids by names
davidscn Mar 21, 2023
d055077
Use precice develop image
davidscn Mar 22, 2023
cf8c0a7
Update package manager
davidscn Mar 22, 2023
fe149d5
Remove sudo command
davidscn Mar 22, 2023
eef3bce
Upgrade pip in CI
davidscn Mar 22, 2023
6905f15
Try running as user
davidscn Mar 22, 2023
95f589b
use precice user
davidscn Mar 22, 2023
e690fba
Next trial
davidscn Mar 22, 2023
7ee2b4b
Run ctest as preCICE user
davidscn Mar 22, 2023
0719c8a
user rights for running tests
davidscn Mar 22, 2023
35db064
Try to adjust user rights in whole repo
davidscn Mar 22, 2023
0e9e5af
Run python stuff as non-user-
davidscn Mar 22, 2023
0d1558d
Install gcc time
davidscn Mar 22, 2023
788641d
Port config template to new mapping config
davidscn Mar 30, 2023
37d4dc6
Fix test
davidscn Mar 30, 2023
68b203e
Merge branch 'develop' into precice-v3
davidscn Mar 30, 2023
02fa0f1
Migrate getData calls to new API
davidscn May 4, 2023
762b71e
Update mandatory dt
davidscn May 5, 2023
336f4c8
Port API to spans
davidscn May 11, 2023
e4c5d44
Rename SolverInterface to Participant
fsimonis May 17, 2023
85ec940
Enable full profiling in examples
fsimonis May 17, 2023
a4ea3ad
Port configuration files
davidscn Jul 3, 2023
2c7e337
Update post-processing facilities to new events
davidscn Jul 5, 2023
8ae51e1
Fixup (mapping is now computed in initialize)
davidscn Jul 5, 2023
857af34
Merge `initialize` and `initializeData`
davidscn Nov 18, 2022
1da92e4
Merge branch 'develop' into precice-v3
davidscn Aug 4, 2023
9ecaddd
Increase vtk version to 9
davidscn Aug 4, 2023
256a37e
Also install required qt vtk 9 package
davidscn Aug 4, 2023
d5bc6d1
Upgrade symlibs as well
davidscn Aug 4, 2023
faa17d7
Skip installation step
davidscn Aug 4, 2023
2adaeb9
Require preCICE v3
davidscn Aug 4, 2023
393f53d
Merge pull request #161 from davidscn/precice-v3
davidscn Aug 4, 2023
eec70ff
Adjust axis units for plotting tools
davidscn Aug 9, 2023
34c2762
Move and update sync-mode tag to synchronize
davidscn Aug 9, 2023
9a3073d
Move dimension attribute into mesh tag
davidscn Aug 16, 2023
971b8ab
Add executor options to the config template
Aug 16, 2023
223e2a9
Add missing delimiter in json test setup file
davidscn Aug 16, 2023
784fe5a
Add executor only conditionally
davidscn Aug 16, 2023
45a4c88
Add assert for precice-events installation
davidscn Aug 16, 2023
52e6076
Bump actions/checkout from 3 to 4
dependabot[bot] Sep 11, 2023
ad5501f
Fix linker flag for mesh tools
davidscn Sep 18, 2023
c61c4b6
Fix gathering of ranks instead of meshes in `gatherstats.py`
davidscn Sep 18, 2023
5ca7a17
Rename precice-events to precice-profiling
davidscn Oct 19, 2023
f6a3cf7
Add optional early exit for run script generation in mapping tester
davidscn Oct 19, 2023
48b7563
Fix mapping tester config and test in early exit mode
davidscn Oct 19, 2023
d26499d
Fix unit of memory plot to KB
davidscn Oct 23, 2023
278fd5b
Fix vertex resolution in partitioner and joiner (#180)
davidscn Oct 30, 2023
1f43f59
Gather raw memory measurements in mapping tools
davidscn Oct 30, 2023
da84505
Use correct preCICE header precice.hpp instead of Participant.hpp
davidscn Nov 22, 2023
82357ce
Bump actions/setup-python from 4 to 5
dependabot[bot] Dec 11, 2023
2c038a6
Use env time to bypass built-in time instead of usr/bin
davidscn Sep 20, 2023
eb917ab
Update json version to 3.11.3
davidscn Feb 2, 2024
be16562
Add pre-commit website lints (#183)
fsimonis Mar 20, 2024
3168b0e
Change test name from test to precice-aste-test (#175)
kursatyurt Mar 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add connectivity using Delaunay Triangulation
kursatyurt committed Nov 13, 2022
commit aec8db9e258c0c7d6da219098870de0cfc4feab8
3 changes: 2 additions & 1 deletion tools/mesh-generators/README.md
Original file line number Diff line number Diff line change
@@ -31,11 +31,12 @@ This requires the `meshio` and `numpy` Python packages.
## Halton points mesh generator

This script can generate a mesh bounded in a unit square/cube (without any connectivity information) with given number of points.
Run with output file name, number of points and space dimension as arguments, optionally seed for Halton generator can be passed. For instance :
Run with output file name, number of points and space dimension as arguments, optionally seed for Halton generator can be passed. Since it expensive the connectivity information (triangle/tetrahedron) can be also requested by using an additional argument. For instance :

```bash
python generate_halton_mesh.py --mesh halton_cube.vtk --numpoints 1000 --dimension 3
python generate_halton_mesh.py --mesh halton_square.vtu --numpoints 500 --dimension 2 --seed 42
python generate_halton_mesh.py --mesh halton_square.vtu --numpoints 500 --dimension 2 --seed 42 --connnectivity
```

This requires the `scipy`, `numpy` and `meshio` Python packages.
20 changes: 16 additions & 4 deletions tools/mesh-generators/generate_halton_mesh.py
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@

import meshio
import numpy as np
from scipy.spatial import Delaunay
from scipy.stats.qmc import Halton


@@ -38,6 +39,9 @@ def parse_args():
parser.add_argument(
"--seed", "-s", type=int, dest="seed", help="Seed for random number generator."
)
parser.add_argument(
"--connectivity", "-c", action="store_true", help="Generate connectivity"
)

args, _ = parser.parse_known_args()
return args
@@ -50,12 +54,17 @@ def generate_points(dim, num_points, seed):
return points


def write_mesh(mesh_filename, points):
# No connectivity information, so we just write the points
cells = [("vertex", np.arange(points.shape[0]).reshape(-1, 1))]
def write_mesh(mesh_filename, points, cells):
mesh = meshio.Mesh(points, cells)
mesh.write(mesh_filename)

def get_trianglation(points,dim):
if dim == 2:
return ("triangle", Delaunay(points[:, :-1]).simplices)
else:
return ("tetra", Delaunay(points).simplices)



if __name__ == "__main__":
args = parse_args()
@@ -65,4 +74,7 @@ def write_mesh(mesh_filename, points):
if ext.lower() != ".vtk" and ext.lower() != ".vtu":
raise ValueError("Output file must be a .vtk or .vtu file.")
points = generate_points(args.dimension, args.num_points, args.seed)
write_mesh(args.output, points)
cells = [("vertex", np.arange(points.shape[0]).reshape(-1, 1))]
if args.connectivity: # Generate connectivity
cells.append(get_trianglation(points,args.dimension))
write_mesh(args.output, points, cells)