Browse Source

Fixed typos in README

master
R.A. Arostica Barrera 3 months ago
parent
commit
29ecba487f
  1. 17
      README.md
  2. 4
      poisson.py

17
README.md

@ -88,15 +88,20 @@ pew in fenics-2019.1.0.post0-intel2018a srun python3 /home/you_p_number/path_to_
## Extras: On working with ParaView and Peregrine ##
To run ParaView on the Peregrine sever:
1. Run a pvsever on Peregrine, using the SLURM script below, choosing an arbitrary porn number, e.g. 11111.
1. Run a pvsever on Peregrine, using the SLURM script below, choosing an arbitrary port number, e.g. 11111.
2. As the job starts to run, check on which node it runs (either with `squeue` or by looking up the job output line like `Accepting connection(s): pg-node005:222222`.
3. Open an ssh forward tunner connecting you directly to the respective node, e.g.
```shell
ssh -N -L 11111:pg-node005:222222 username@peregrine.hpc.rug.nl
```
This will forward the connection to the indicated node using the local port 11111 (your machine) and the target port 222222 (computing node).
4. Open ParaView 5.4.1 (version must match the current version on Peregrine, note that ParaView from the Ubuntu standard repositories does not work with this and ParaView must be [downloaded](paraview.org/download/) instead.
```shell
ssh -N -L 11111:pg-node005:222222 username@peregrine.hpc.rug.nl
```
This will forward the connection to the indicated node using the local port 11111 (your machine) and the target port 222222 (computing node).
4. Open ParaView 5.4.1 (version must match the current version on Peregrine, note that ParaView from the Ubuntu standard repositories does not work with this and ParaView must be [downloaded](https://www.paraview.org/download/) instead.
5. Choose "Connect" from the top left corner, add a new server with properties client / server, localhost, port 11111 (default values). Connect to that server.
6. If successful, you can now open files directly from the server and view them in decomposed state.
**SLURM script**

4
poisson.py

@ -43,7 +43,7 @@ parameters["form_compiler"]["cpp_optimize_flags"] = "-O3 -ffast-math -march=nati
def main():
t0 = Timer("Z Creating mesh...")
# Initial number of DOFs per MPI process
ndofs = 2000
ndofs = 20
# Number of times to refine initial mesh
refine_levels = 3
# Get number of MPI processes
@ -133,7 +133,7 @@ def main():
del(t0)
t0 = Timer("Z Solving...")
solver = PETScKrylovSolver("cg", "hypre_amg")
solver = PETScKrylovSolver("cg"# ("cg", "hypre_amg")
solver.parameters["relative_tolerance"] = 1e-10
solver.set_from_options()
info(solver.parameters, True)

Loading…
Cancel
Save