Skip to content

Commit 790614a

Browse files
Merge pull request #467 from geodynamics/baagaard/fix-install-information
Update install information
2 parents a58c4bc + e3e3e5d commit 790614a

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

docs/user/install/index.md

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ The binaries are intended for users running on laptops or desktop computers (as
2525
The binaries contain the compilers and header files, so users wishing to extend the code can still use the binary and do not need to build PyLith and its dependencies from source.
2626
See {ref}`sec-developer-contributing` for more information on extending PyLith.
2727

28-
Binary executables are available for Linux (glibc 2.12 and later) and Mac OS X (Intel 10.13 and later) from the PyLith web page <https://geodynamics.org/resources/pylith/>.
28+
Binary executables are available for Linux (glibc 2.12 and later) and macOS (Intel 11.0 and later) from the PyLith web page <https://geodynamics.org/resources/pylith/>.
29+
Users running macOS on MX based computers can use the Intel version.
2930
Users running Windows 10 build 14316 and later can install a Linux bash environment and use the PyLith binary for Linux (see Section {ref}`sec:install:windows` for more information).
3031

3132
:::{tip}
3233
On Linux systems you can check which version of glibc you have by running `ldd-version`
3334

34-
On macOS systems running OS X, you can check the operating system version by clicking on the Apple icon and *About This Mac*.
35+
On macOS systems you can check the operating system version by clicking on the Apple icon and *About This Mac*.
3536
:::
3637

3738
### Linux and macOS
@@ -48,15 +49,17 @@ On macOS systems running OS X, you can check the operating system version by cli
4849
3. Unpack the tarball.
4950
```{code-block} bash
5051
# Linux 64-bit
51-
$ tar -xzf pylith-3.0.0beta-linux-x86_64.tgz
52+
$ tar -xzf pylith-3.0.0-linux-x86_64.tar.gz
53+
5254
# macOS
53-
$ tar -xzf pylith-3.0.0beta-macOS-10.11.6.tgz
55+
$ tar -xzf pylith-3.0.0-macOS-11.6.6-x86_64.tar.gz
5456
```
5557
4. Set environment variables.
5658
The provided `setup.sh` script only works if you are using bash shell.
5759
If you are using a different shell, you will need to alter how the environment variables are set in `setup.sh`.
5860
```{code-block} bash
5961
$ source setup.sh
62+
Ready to run PyLith.
6063
```
6164

6265
:::{warning}
@@ -66,10 +69,6 @@ By default the `setup.sh` script will prepend to the PATH and PYTHONPATH (for ma
6669
This will prevent most conflicts.
6770
:::
6871

69-
:::{warning}
70-
The PyLith binary distribution for **macOS** systems is built using the system clang compiler suite and system Python. **This means the system Python must be in your path to use the PyLith binary executable**; ensure `/bin` and `/usr/bin` are at the beginning of the PATH environment variable, which is done automatically if you use the `setup.sh` script. **This condition is often violated if you have Python installed from Anaconda, HomeBrew, MacPorts, etc. and set the PATH variable in your bash configuration file.**
71-
:::
72-
7372
(sec:install:windows)=
7473
### Windows
7574

@@ -122,22 +121,16 @@ For each package this utility downloads the source code, configures it, builds i
122121

123122
## Verifying PyLith is Installed Correctly
124123

125-
:::{admonition} TODO
126-
:class: error
127-
128-
Point `sec:example:3dhex8-static` reference to correct example
129-
:::
130-
131124
The easiest way to verify that PyLith has been installed correctly is to run one or more of the examples supplied with the binary and source code.
132125
In the binary distribution, the examples are located in `src/pylith-3.0.0/examples` while in the source distribution, they are located in `pylith-3.0.0/examples`.
133126
{ref}`sec-examples` discusses how to run and visualize the results for the examples.
134127
To run the example discussed in Section {ref}`sec-examples-box-2d`:
135128

136129
```{code-block} bash
137-
$ cd examples/2d/box
130+
$ cd examples/box-2d
138131
$ pylilth step01_axialdisp.cfg
139132
# A bunch of stuff will be written to stdout. The last few lines should be:
140-
>> ... lib/python2.7/site-packages/pylith/problems/Problem.py:218:finalize
133+
>> .../lib/python3.9/site-packages/pylith/problems/Problem.py:201:finalize
141134
-- timedependent(info)
142135
-- Finalizing problem.
143136
```
@@ -147,15 +140,30 @@ message:
147140

148141
```{code-block} bash
149142
$ pylith
143+
>> {default}::
144+
-- pyre.inventory(error)
145+
-- metadata.description <- ''
146+
-- Nonempty string required.
147+
>> {default}::
148+
-- pyre.inventory(error)
149+
-- metadata.arguments <- '[]'
150+
-- List of command line arguments required.
151+
>> {default}::
152+
-- pyre.inventory(error)
153+
-- metadata.pylith_version <- '[]'
154+
-- List of PyLith version constraints required.
150155
>> {default}::
151156
-- pyre.inventory(error)
152157
-- meshimporter.meshioascii.filename <- ''
153-
-- Filename for ASCII input mesh not specified. To test PyLith, run an example as discussed in the manual.
158+
-- Filename for ASCII input mesh not specified. To test PyLith, run an example as discussed in the manual.
159+
>> {default}::
160+
-- pyre.inventory(error)
161+
-- timedependent.problem_defaults.name <- ''
162+
-- Missing required property 'name' in default options for problem.
154163
pylithapp: configuration error(s)
155164
```
156165

157-
This indicates that at a very minimum the finite-element mesh file must be specified in order to run PyLith.
158-
166+
This indicates that at a very minimum metadata and the finite-element mesh file must be specified in order to run PyLith.
159167

160168
## Configuration on a Cluster
161169

@@ -169,7 +177,6 @@ On some systems, `mpirun` is invoked directly from the batch script.
169177
On others, a special wrapper is used instead.
170178

171179
Properly configured, Pyre can handle job submissions automatically, insulating users from the details of the batch system and the site configuration.
172-
This feature has the most value when the system administrator installs a global Pyre configuration file on the cluster (under `/etc/pythia-0.8`), for the benefit of all users and all Pyre-based applications.
173180

174181
(sec:launchers:schedulers)=
175182
### Launchers and Schedulers
@@ -178,7 +185,6 @@ If you have used one of the batch systems, you will know that the batch system r
178185
Fortunately, launching a parallel PyLith job is simplified by Pyre's **launcher** and **scheduler** facilities.
179186
Many properties associated with **launcher** and **scheduler** are pertinent to the cluster you are on, and are best customized in a configuration file.
180187
Your personal PyLith configuration file (`$HOME/.pyre/pylithapp/pylithapp.cfg`) is suitable for this purpose.
181-
On a cluster, the ideal setup is to install a system-wide configuration file under `/etc/pythia-0.8`, for the benefit of all users.
182188

183189
Pyre's **scheduler** facility is used to specify the type of batch system you are using (if any):
184190

0 commit comments

Comments
 (0)