Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 671 Bytes

paralleltruss2.rst

File metadata and controls

34 lines (19 loc) · 671 Bytes

Parallel Parametric Study Example

  1. The source code is shown below, which can be downloaded here </pyExamples/paralleltruss2.py>.
  2. Run the source code with 2 processors
mpiexec -np 2 python paralleltruss2.py

the outputs look like

Processor 0
Node 4 (E = 3000.0 ) Disp : [0.5300927771322836, -0.17789363846931766]
Processor 1

Node 4 (E = 6000.0 ) Disp : [0.2650463885661418, -0.08894681923465883]


Process 1 Terminating
Process 0 Terminating

The script is shown below

/pyExamples/paralleltruss2.py