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: docs/user/install/index.md
+27-21Lines changed: 27 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,13 +25,14 @@ The binaries are intended for users running on laptops or desktop computers (as
25
25
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.
26
26
See {ref}`sec-developer-contributing` for more information on extending PyLith.
27
27
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.
29
30
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).
30
31
31
32
:::{tip}
32
33
On Linux systems you can check which version of glibc you have by running `ldd-version`
33
34
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*.
35
36
:::
36
37
37
38
### Linux and macOS
@@ -48,15 +49,17 @@ On macOS systems running OS X, you can check the operating system version by cli
48
49
3. Unpack the tarball.
49
50
```{code-block} bash
50
51
# 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
+
52
54
# 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
54
56
```
55
57
4. Set environment variables.
56
58
The provided `setup.sh` script only works if you are using bash shell.
57
59
If you are using a different shell, you will need to alter how the environment variables are set in `setup.sh`.
58
60
```{code-block} bash
59
61
$ source setup.sh
62
+
Ready to run PyLith.
60
63
```
61
64
62
65
:::{warning}
@@ -66,10 +69,6 @@ By default the `setup.sh` script will prepend to the PATH and PYTHONPATH (for ma
66
69
This will prevent most conflicts.
67
70
:::
68
71
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
-
73
72
(sec:install:windows)=
74
73
### Windows
75
74
@@ -122,22 +121,16 @@ For each package this utility downloads the source code, configures it, builds i
122
121
123
122
## Verifying PyLith is Installed Correctly
124
123
125
-
:::{admonition} TODO
126
-
:class: error
127
-
128
-
Point `sec:example:3dhex8-static` reference to correct example
129
-
:::
130
-
131
124
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.
132
125
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`.
133
126
{ref}`sec-examples` discusses how to run and visualize the results for the examples.
134
127
To run the example discussed in Section {ref}`sec-examples-box-2d`:
135
128
136
129
```{code-block} bash
137
-
$ cd examples/2d/box
130
+
$ cd examples/box-2d
138
131
$ pylilth step01_axialdisp.cfg
139
132
# A bunch of stuff will be written to stdout. The last few lines should be:
-- 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.
154
163
pylithapp: configuration error(s)
155
164
```
156
165
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.
159
167
160
168
## Configuration on a Cluster
161
169
@@ -169,7 +177,6 @@ On some systems, `mpirun` is invoked directly from the batch script.
169
177
On others, a special wrapper is used instead.
170
178
171
179
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.
173
180
174
181
(sec:launchers:schedulers)=
175
182
### Launchers and Schedulers
@@ -178,7 +185,6 @@ If you have used one of the batch systems, you will know that the batch system r
178
185
Fortunately, launching a parallel PyLith job is simplified by Pyre's **launcher** and **scheduler** facilities.
179
186
Many properties associated with **launcher** and **scheduler** are pertinent to the cluster you are on, and are best customized in a configuration file.
180
187
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.
182
188
183
189
Pyre's **scheduler** facility is used to specify the type of batch system you are using (if any):
0 commit comments