LANL Software: LA-CC-15-069 No. C15097
LaGriT Home • LaGriT Documentation • Meshing Portfolio
Los Alamos Grid Toolbox (LaGriT) is a library of user callable tools that provide mesh generation, mesh optimization and dynamic mesh maintenance in two and three dimensions. LaGriT is used for a variety of geology and geophysics modeling applications including porous flow and transport model construction, finite element modeling of stress/strain in crustal fault systems, seismology, discrete fracture networks, asteroids and hydrothermal systems.
The general capabilities of LaGriT can also be used outside of earth science applications and applied to nearly any system that requires a grid/mesh and initial and boundary conditions, setting of material properties and other model setup functions. It can also be use as a tool to pre- and post-process and analyze vertex and mesh based data.
PyLaGriT is a Python interface for LaGriT that allows LaGriT functionality to be accessed interactively and in batch mode from Python. This allows the meshing capabilities of LaGriT to be combined with the numeric and scientific functionality of Python. PyLaGriT allows interactive and automated querying of mesh properties, enhanced looping functionality, and user defined error checking based on LaGriT output.
$ mkdir build/
$ cd build/
$ cmake ..
$ make
Download the repo by running:
git clone -b windows https://github.com/lanl/LaGriT.git
cd LaGriT
- Microsoft Visual Studio
- Intel Fortran
-
Open Microsoft Visual Studio and launch the developer
cmd.exe
viaVisual Studio -> Tools -> Command Line -> Developer Command Prompt
-
Run the Intel-provided
psxevars.bat
script to populate the command prompt with necessary developer environment variables.
- 2.1. First,
cd
into:C:\Program Files (x86)\IntelSWTools\parallel_studio_xe_2020.4.912\bin\
- 2.2. Run:
psxevars.bat intel64
-
Navigate back into the cloned LaGriT directory:
cd C:\Users\user\repos\LaGriT\
-
Run CMake:
cmake -G"NMake Makefiles" -B"build" -D CMAKE_C_COMPILER=icx -D CMAKE_Fortran_COMPILER=ifort
cl
-
Then,
cd build\
and runnmake
. -
The executable binary will be compiled as
lagrit.exe
.
A Python-based test suite is available under test\suite.py
. Run the suite as:
python suite.py /f /l 1 /exe=..\build\lagrit.exe /hf=3
- Test on Windows
- Verify test suite
- Get PyLaGriT working
- Verify all platforms work with CMake
- Get TravisCI working without Exodus
- Get TravisCI working with Exodus
- Installation
- GitHub pages
- lagrit.lanl.gov: Description and Manual
- PyLaGriT documentation
- Contribution Agreement for External Collaborators
- Copyright License