Skip to content

Commit a6e13f5

Browse files
yqliaohkmarcomanganoewu63
authored
Added a note on optoptions and updated readme and requirement (#25)
* Added a note on optoptions and updated readme and requirement * Minor edits * Update conf.py * switched to intersphinx Co-authored-by: Marco Mangano <[email protected]> Co-authored-by: Neil Wu <[email protected]> Co-authored-by: Neil Wu <[email protected]>
1 parent e8ff8fc commit a6e13f5

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ This repository contains the following:
3030

3131
These documentation can be accessed online at https://mdolab-mach-aero.readthedocs-hosted.com/.
3232
To run the tutorials yourself, you need to follow the installation instructions to install all the modules, then clone this repository to access the tutorial scripts.
33+
To compile the doc locally, first install dependencies via ``pip install -r requirements.txt``, then build locally with ``make html``.

conf.py

+5
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@
88
# here we add external extensions, which must also be added to requirements.txt
99
# so that RTD can import and use them
1010
extensions.extend(["sphinxcontrib.bibtex"])
11+
12+
# Specify the baseurls for the projects I want to link to
13+
intersphinx_mapping = {
14+
"pyoptsparse": ("https://mdolab-pyoptsparse.readthedocs-hosted.com/en/latest", None),
15+
}

machAeroTutorials/opt_aero.rst

+8
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,14 @@ To finish up, we choose the optimizer and then run the optimization.
206206
.. literalinclude:: ../tutorial/opt/aero/aero_opt.py
207207
:start-after: # rst optimizer
208208

209+
.. note::
210+
The complete set of options for ``SNOPT`` can be found in :ref:`the pyOptSparse documentation <pyoptsparse:snopt>`.
211+
It is useful to remember that you can include major iterations information in the history file by providing the proper options.
212+
It has been observed that the ``_print`` and ``_summary`` files occasionally fail to be updated, possibly due to unknown hardware issues on GreatLakes.
213+
The problem is not common, but if you want to avoid losing this information, you might back it up in the history file.
214+
This would allow you monitor the optimization even if the ``_print`` and ``_summary`` files are not being updated.
215+
Note that the size of the history file will increase due to this additional data.
216+
209217
Run it yourself!
210218
================
211219
To run the script, use the ``mpirun`` and place the total number of processors after the ``-np`` argument::

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sphinxcontrib.bibtex
1+
sphinxcontrib-bibtex==1.0.0
22
sphinx_mdolab_theme

0 commit comments

Comments
 (0)