You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lessons/atpesc-instructions.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
2
-
# Instructions for Numerical Package Hands-on
2
+
# Instructions for Numerical Package Hands-on Setup (ATPESC 2017)
3
3
4
-
ATPESC participants will work in groups of 2 for hands-on exercises. Forming groups of 2 helps us to cut in half the number of IT issues that may arise during hands-on exercises. Moreover, [pair programming](https://en.wikipedia.org/wiki/Pair_programming) (the practice of having two people work together on one machine, each taking turns between typing and commenting) results in real-time code review, which [research has shown](http://www.sciencedirect.com/science/article/pii/S0950584909000123) results in higher productivity. If you are not using an OSX or Linux laptop, it would be best to try to pair with someone who is.
4
+
Participants in [ATPESC 2017](https://extremecomputingtraining.anl.gov) will work in groups of 2 for hands-on exercises. Forming groups of 2 helps us to cut in half the number of IT issues that may arise during hands-on exercises. Moreover, [pair programming](https://en.wikipedia.org/wiki/Pair_programming) (the practice of having two people work together on one machine, each taking turns between typing and commenting) results in real-time code review, which [research has shown](http://www.sciencedirect.com/science/article/pii/S0950584909000123) results in higher productivity. If you are not using an OSX or Linux laptop, it would be best to try to pair with someone who is.
-**WARNING: Do not attempt next step until after 9:30 am, when our cooley reservation begins.**
29
+
-**WARNING: Do not attempt next step until after 9:30 am, when our Cooley reservation begins. Please be sure to work in pairs for the node reservations so that we have sufficient nodes for each pair to use 2 compute nodes for the exercises throughout the day.**
30
30
- Obtain 2 compute nodes in _interactive_ (`-I`) mode to run the hands on exercises by running the following `qsub` command...
Does the preconditioner | See that the preconditioner |
10
-
affect the convergence | can be crucial for |
11
-
rate? | convergence |
12
-
9
+
Does the preconditioner | See that the preconditioner | Through a single interface,
10
+
affect the convergence | can be crucial for | PETSc supports runtime choices
11
+
rate of Krylov solvers? | convergence. | of algorithms and options.
12
+
| |
13
+
How can I choose algs. | Learn the basics of using | Experimenting with
14
+
and options at runtime | PETSc solvers & understanding | algorithms is essential
15
+
when using PETSc? | output. | for good performance.
13
16
```
14
17
15
-
Before running the examples you must switch to the bash shell by using
18
+
Before running the examples, you must switch to the bash shell by using
16
19
17
20
```
18
21
bash
19
22
```
20
23
21
24
## Example 1: Structural Mechanics Beam Deflection:
22
25
23
-
This code uses MFEM and [PETSc/TAO](https://www.mcs.anl.gov/petsc/) to demonstrates convergence of Krylov methods.
26
+
This code uses MFEM and [PETSc/TAO](https://www.mcs.anl.gov/petsc/) to demonstrate the convergence of Krylov methods.
24
27
25
28
The source code is included in [ex2p.c](./ex2p.c)
26
29
27
-
Notes: Normally PETSc options can be passed in as command line arguments but MFEM turns off this capability, thus they must be passed either in a file or in the PETSC_OPTIONS environmental variable. See the file rc_ex2p for the PETSc options that are supplied to the application in these examples.
30
+
Notes: Normally PETSc options can be passed as command line arguments. But because MFEM turns off this capability, PETSc options must be passed either in a file or in the PETSC_OPTIONS environmental variable. See the file rc_ex2p for the PETSc options that are supplied to the application in these examples.
The first column of the output is the residual norm. The next two are the maximum and minimum estimated eigenvalues of the operator and the final column is the condition number.
36
39
37
40
#### Questions
38
41
> **Is the iteration converging?**
39
42
40
-
> **Read the output at the bottom from -ksp_view, what Krylov method and preconditioner is it using?**
43
+
> **Read the output at the bottom from -ksp_view ... What Krylov method and preconditioner are being used?**
41
44
42
45
### Run 2: Run with the algebraic multigrid preconditioner
We have used [PETSc](https://www.mcs.anl.gov/petsc/) to demonstrate Krylov methods and nonlinear solver methods.
86
+
We have used [PETSc](https://www.mcs.anl.gov/petsc/) to demonstrate the use of preconditioned Krylov methods. Many examples are available for various aspects of PETSc functionality, including
0 commit comments