Skip to content

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.

License

Notifications You must be signed in to change notification settings

daniellivingston/LaGriT-Windows

 
 

Repository files navigation

LaGriT: Los Alamos Grid Toolbox

LANL Software: LA-CC-15-069 No. C15097

Build Status Latest Version PyPI

LaGriT HomeLaGriT DocumentationMeshing 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.

Building LaGriT

$ mkdir build/
$ cd build/
$ cmake ..
$ make

Building LaGriT (Windows)


Download the repo by running:

git clone -b windows https://github.com/lanl/LaGriT.git
cd LaGriT

Requirements

  • Microsoft Visual Studio
  • Intel Fortran

Steps to Build

  1. Open Microsoft Visual Studio and launch the developer cmd.exe via Visual Studio -> Tools -> Command Line -> Developer Command Prompt

  2. 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
  1. Navigate back into the cloned LaGriT directory: cd C:\Users\user\repos\LaGriT\

  2. Run CMake: cmake -G"NMake Makefiles" -B"build" -D CMAKE_C_COMPILER=icx -D CMAKE_Fortran_COMPILER=ifort

cl

  1. Then, cd build\ and run nmake.

  2. The executable binary will be compiled as lagrit.exe.

Testing

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

TODO:

  • 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

Supporting Documentation


Refine Samples

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Fortran 83.3%
  • C 8.2%
  • HTML 3.8%
  • Python 2.3%
  • JavaScript 1.5%
  • CSS 0.4%
  • Other 0.5%