Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jrwrigh/cgnspetscfilewritingtoy


https://github.com/jrwrigh/cgnspetscfilewritingtoy

Last synced: 26 days ago
JSON representation

Awesome Lists containing this project

README

        

## Build

1. Set `PETSC_DIR` and `PETSC_ARCH` appropriately for your petsc installation (such that `$PETSC_DIR/$PETSC_ARCH` is the path to the installation directory).
2. `make`

## Running

The `settings.yaml` has most of the default options necessary.

Run using (for example):

```
mpirun -n 4 ./exec -options_file setting.yaml
```

Size of the problem is controlled by `-dm_plex_box_faces` flag. So a 100x100x100 mesh would be:

```
mpirun -n 4 ./exec -options_file setting.yaml -dm_plex_box_faces 100,100,100
```

Order of the elements is set via `-degree`. So quadratic elements would have `-degree 2`

The time taken to write the file is printed out at the end (via the `VecView` event in PETSc).