File: guide_to_TAS.md.txt

package info (click to toggle)
petsc 3.23.1%2Bdfsg1-1exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 515,576 kB
  • sloc: ansic: 751,607; cpp: 51,542; python: 38,598; f90: 17,352; javascript: 3,493; makefile: 3,157; sh: 1,502; xml: 619; objc: 445; java: 13; csh: 1
file content (46 lines) | stat: -rw-r--r-- 1,303 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Time, Accuracy, Speed Analysis (TAS)

```{highlight} none
```

Below is the guide to running TAS using ex13, which is a Poisson Problem in 2D and 3D with Finite Elements:

1. Compile `ex13.c`

> 1. This example source file, and the corresponding `makefile` are located in `PETSC_DIR/src/snes/tutorials/`
>
> 2. Compile with the command:
>
>    > ```console
>    > $ make ex13
>    > ```

2. Run ex13 with the following command:

   ```
   mpiexec -n 2 ./ex13 -log_view :/home/<user name>/PETSC_DIR/lib/petsc/bin/ex_13_test.py:ascii_info_detail \
     -dm_distribute \
     -dm_plex_box_faces 8,8 \
     -potential_petscspace_degree 1 \
     -snes_convergence_estimate \
     -convest_num_refine 5
   ```

3. A log file in the above directory called `ex_13_test.py` should now be present. This is also the same directory that contains the TAS python3 script `petsc_tas_analysis.py`

4. Now run `petsc_tas_analysis.py`:

   ```
   ./petsc_tas_analysis.py -f ex_13_test
   ```

5. You should see something similar to the following in your terminal window:

   > ```{literalinclude} exampleTASOutPut.txt
   > ```

6. Finally the graphs will appear in the subdirectory `graphs/`

For more detailed help in using TAS:
: 1. See detailed user's guide
  2. On the command line use `./petsc_tas_analysis.py -h`