Skip to content

Commit

Permalink
Merge pull request #82 from GRTLCollaboration/enhancement/common_tmp_…
Browse files Browse the repository at this point in the history
…build_dir

Build: Remove default `TMP_BUILD_DIR`
  • Loading branch information
julianakwan authored Jan 7, 2025
2 parents 03e7a2e + 1444aa8 commit edeb39e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
26 changes: 22 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,28 @@ processes, do
```bash
make -j 4
```
A new `tmp_build_dir` directory will be created under `~/GRTeclyn` to store the
compiled object and auxiliary files. Assuming all is well, you should have an
executable in the current directory of the form `main<config>.ex` e.g.
`main3d.gnu.MPI.OMP.ex`.
A new `tmp_build_dir` directory will be created to store the compiled object and
auxiliary files. Assuming all is well, you should have an executable in the
current directory of the form `main<config>.ex` e.g. `main3d.gnu.MPI.OMP.ex`.
If you want to clean the current build configuration you can do
```bash
make cleanconfig
```
Note that this is similar to `make clean` for GRChombo examples.
If you want to clean all build configuration, you can do
```bash
make clean
```
Note that this is similar to `make realclean` for GRChombo examples.
To speed up subsequent compilations, you can install
[Ccache](https://ccache.dev/) and then add
```
USE_CCACHE = TRUE
```
to your `Make.local-pre` configuration file.
## Running the code
Expand Down
7 changes: 1 addition & 6 deletions Tools/GNUMake/Make.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,4 @@ DIM = 3
BL_NO_FORT = TRUE
AMREX_NO_PROBINIT = TRUE

CXXSTD = c++17

GRTECLYN_HOME ?= $(realpath ../..)

# Use a common temporary build directory for all GRTeclyn applications
TMP_BUILD_DIR ?= $(GRTECLYN_HOME)/tmp_build_dir
CXXSTD = c++17

0 comments on commit edeb39e

Please sign in to comment.