Skip to content

Commit

Permalink
Add README and CONTRIBUTING.md to the doxygen pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
samcunliffe committed Feb 20, 2023
1 parent a2e1e22 commit 77febc9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!-- \cond -->
<!-- 👆 this comment and the endcond below, tells doxygen to ignore the badges
and title at the top of README.md when building the project page (the title
would be duplicated) everything else in README.md is also the project homepage. -->

[![Linux tests](https://github.com/UCL/TDMS/actions/workflows/linux_tests.yml/badge.svg)](https://github.com/UCL/TDMS/actions/workflows/linux_tests.yml)
[![Windows tests](https://github.com/UCL/TDMS/actions/workflows/windows_tests.yml/badge.svg)](https://github.com/UCL/TDMS/actions/workflows/windows_tests.yml)
[![MATLAB tests](https://github.com/UCL/TDMS/actions/workflows/matlab_tests.yml/badge.svg)](https://github.com/UCL/TDMS/actions/workflows/matlab_tests.yml)
Expand All @@ -8,16 +13,16 @@
> **Warning**
> This repository is a _work in progress_. The API will change without notice
***
## Introduction
<!-- \endcond -->

# Time-Domain Maxwell Solver

TDMS, the Time Domain Maxwell Solver, is a hybrid C++ and MATLAB tool for solving
Maxwell's equations to simulate light propagation through a medium. See the
[pdf documentation](https://github.com/UCL/TDMS/blob/gh-doc/masterdoc.pdf) for
further details.


***
## Compilation

TDMS needs to be built against [FFTW](https://www.fftw.org/) and
Expand Down Expand Up @@ -59,7 +64,6 @@ where lines need to be commented in and the paths modified if cmake cannot
</details>
***
## Usage
Once the executable has been compiled and installed, `tdms` should be in the `PATH`.
Expand All @@ -72,7 +76,7 @@ $ tdms -h
You can invoke it directly or call it from a MATLAB script.
We recommend that beginners with MATLAB installed start with the demonstration MATLAB script.

#### To run the demonstration code
### To run the demonstration code

Move into directory [`examples/arc_01`](./examples/arc_01/),
launch MATLAB and run the MATLAB script:
Expand All @@ -82,7 +86,7 @@ launch MATLAB and run the MATLAB script:
This script will generate the input to the executable, run the executable and
display sample output.

#### To run standalone
### To run standalone

You can also run `tdms` from the command line...

Expand All @@ -102,7 +106,7 @@ The basic workflow is with two arguments, an input file as specified by [`iterat

You can choose two possible solver methods: either pseudo-spectral time-domain (PSTD, the default) or finite-difference (FDTD, with option `--finite-difference`).

#### Parallelism
### Parallelism

TDMS is parallelised with [OpenMP](https://en.wikipedia.org/wiki/OpenMP). The maximum
number of threads can be set with the `OMP_NUM_THREADS` environment variable.
Expand Down
4 changes: 3 additions & 1 deletion doc/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ GENERATE_TREEVIEW = YES
HTML_EXTRA_STYLESHEET = doc/doxygen-awesome-css/doxygen-awesome.css

# 'mainpage' gets put on the index page
INPUT += README.md
INPUT += CONTRIBUTING.md
INPUT += doc/developers.md
USE_MDFILE_AS_MAINPAGE = doc/developers.md
USE_MDFILE_AS_MAINPAGE = README.md

0 comments on commit 77febc9

Please sign in to comment.