Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Dec 1, 2023
2 parents 960ffc8 + 76ac64b commit ca70961
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .github/actions/deploy-ford-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ runs:
run: ford --version
shell: bash

- name: cpp version
run: cpp --version
shell: bash

- name: Checkout gFTL
uses: actions/checkout@v3
with:
Expand Down
33 changes: 33 additions & 0 deletions docs/Ford/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Ford Documentation

These are control files for the [Ford documentation generator](https://github.com/Fortran-FOSS-Programmers/ford). MAPL currently has
two:

1. `docs-with-remote-esmf.md` - This is the main documentation file. It
includes the documentation for MAPL and ESMF. It is used to generate the
[MAPL documentation](https://geos-esm.github.io/MAPL/).
2. `docs-with-remote-esmf.public_private_protected.md` - This generates the "developer" version of the MAPL documentation. It includes
the documentation for MAPL and ESMF, but also includes the private and
protected members of the MAPL classes. It is used to generate the
[developer version of the MAPL documentation](https://geos-esm.github.io/MAPL/dev-doc/).

## Issue with `pcpp`

Note that currently MAPL does not work with `pcpp` which is the default
preprocessor for Ford 7. Instead, we must use `cpp` with the `-traditional-cpp`
flag. This is done by setting the `preprocessor:` in the Ford markdown files.

```markdown
preprocessor: cpp -traditional-cpp -E
```

### cpp on macOS

Note that on macOS, `cpp` is by default clang's preprocessor. To use the GNU
preprocessor, you must install it with Homebrew and then use the full path to
the executable, e.g.,

```markdown
preprocessor: /opt/homebrew/bin/cpp-13 -traditional-cpp -E
```

13 changes: 7 additions & 6 deletions docs/Ford/docs-with-remote-esmf.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
preprocessor: cpp -traditional-cpp -E
src_dir: ../../
search: true
graph: true
Expand All @@ -8,12 +9,12 @@ graph_maxnodes: 32
include: ../../include/
../../gFTL/install/GFTL-1.10/include/v1
../../gFTL/install/GFTL-1.10/include/v2
exclude: EsmfRegridder.F90
FieldBLAS_IntrinsicFunctions.F90
GeomManager.F90
MaplGeom.F90
Regridder.F90
StateSupplement.F90
exclude: **/EsmfRegridder.F90
**/FieldBLAS_IntrinsicFunctions.F90
**/GeomManager.F90
**/MaplGeom.F90
**/Regridder.F90
**/StateSupplement.F90
exclude_dir: ../../docs
../../Doxygen
../../ESMA_cmake
Expand Down
15 changes: 8 additions & 7 deletions docs/Ford/docs-with-remote-esmf.public_private_protected.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
preprocessor: cpp -traditional-cpp -E
src_dir: ../../
output_dir: dev-doc
search: true
Expand All @@ -9,12 +10,12 @@ graph_maxnodes: 32
include: ../../include/
../../gFTL/install/GFTL-1.10/include/v1
../../gFTL/install/GFTL-1.10/include/v2
exclude: EsmfRegridder.F90
FieldBLAS_IntrinsicFunctions.F90
GeomManager.F90
MaplGeom.F90
Regridder.F90
StateSupplement.F90
exclude: **/EsmfRegridder.F90
**/FieldBLAS_IntrinsicFunctions.F90
**/GeomManager.F90
**/MaplGeom.F90
**/Regridder.F90
**/StateSupplement.F90
exclude_dir: ../../docs
../../Doxygen
../../ESMA_cmake
Expand Down Expand Up @@ -64,4 +65,4 @@ fpp_extensions: F90
externalize: true
---

{!../README.md!}
{!../../README.md!}

0 comments on commit ca70961

Please sign in to comment.