An example ABLATE client that illustrates using ABLATE in your application. See the ABLATE documentation for details about the library.
You must install PETSc following the instructions for you system on the ABLATE Build Wiki along with setting additional PETSc environmental variable:
export PETSC_DIR="" #UPDATE to the real path of petsc
If developing features for ABLATE you may want to specify a local build of ABLATE_PATH instead of downloading it as an environment variable.
export ABLATE_PATH="" #OPTIONAL path to ABLATE source directory/path/to/ablate/source/dir
CLion is a C/C++ IDE that uses cmake files for configuration. These directions outline the steps to running the framework with CLion.
- Download and Install CLion.
- Open CLion and select Get From VCS from the welcome window and either
- (recommended) Select GitHub and Login/Authorize access. Then follow on-screen instructions to clone your repo of ABLATE Client,
- Select Git from the Version Control dropdown and enter your ABLATE Client Repo.
- Enable the
ablate-client-debug
andablate-client-opt
build profiles.- If not opened by default, open the Settings / Preferences > Build, Execution, Deployment > CMake preference window from the menu bar.
- Select the
ablate-client-debug
and click the "Enable profile". Repeat for theablate-client-opt
and apply/close the window. - Select the
ablate-client-opt
orablate-client-debug
build profile under the build toolbar. In short, the debug build makes it easier to debug but is slower. The release/optimized build is faster to execute. - Disable any other profile
- If you are new to CLion it is recommended that you read through the CLion Quick Start Guide.
- Clone your ABLATE client Repo onto your local machine. It is recommended that you setup passwordless ssh for accessing GitHub.
- Move into the ablate client directory
- Configure and build ABLATE client. Both the debug and optimized versions are built. If you are developing new
capabilities you may want to specify debug. If you are running large simulations specify opt.
# debug mode cmake --preset=ablate-client-debug cmake --build --preset=ablate-client-debug -j # optimized cmake --preset=ablate-client-opt cmake --build --preset=ablate-client-opt -j
- Run the client executable (You may have changed the name of the executable)
# debug mode $PETSC_DIR/arch-ablate-debug/bin/mpirun -n 1 cmake-build-debug/ablateLibraryClient # optimized $PETSC_DIR/arch-ablate-opt/bin/mpirun -n 1 cmake-build-opt/ablateLibraryClient