Skip to content

Commit 3446d6e

Browse files
committed
review(correct the solver code in README.rst)
1 parent bfa122e commit 3446d6e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,13 @@ Here is a basic preprocessing example:
129129
Here is a basic solving example:
130130

131131
.. code:: python
132-
132+
>>> hostname = "localhost"
133+
>>> port = "5000"
133134
>>> import ansys.dyna.core.solver as solver
134-
>>> dyna=solver.DynaSovler(hostname,port) # connect to the container
135+
>>> dyna=solver.DynaSolver(hostname,port) # connect to the container
135136
>>> dyna.push("cylinder_flow.k") # push an input file
136137
>>> dyna.start(4) # start 4 ranks of mppdyna
137-
>>> dyna.run("i=cylinder_flow.k memory=10m ncycle=20000") # begin execution
138+
>>> dyna.run("i=./output/cylinder_flow.k memory=10m ncycle=20000") # begin execution
138139
139140
Here is a basic postprocessing example:
140141

0 commit comments

Comments
 (0)