Installation¶
This guide covers installing ORION for both Fortran and Python users.
Prerequisites¶
Before installing ORION, ensure you have the required dependencies:
- CMake ≥ 3.13
- Fortran compiler: Intel (
ifort/ifx) or GNU (gfortran) - C++ compiler: Required for TecIO binary format support (optional)
- Python ≥ 3.6: For Python interface (optional)
Installation Methods¶
Choose the installation method that best fits your needs:
Build the Fortran library and command-line converter:
git clone https://github.com/MarcoGrossi92/ORION.git
cd ORION
./install.sh build --compiler=gnu --use-tecio
This creates:
- Static library: lib/libORION.a
- Converter executable: bin/app/ORION
- Test executables: bin/test/
Install the Python package:
This provides Python bindings for Tecplot ASCII format only.
Build Options¶
The install.sh script provides flexible build configuration:
Basic Syntax¶
Global Options¶
| Option | Description |
|---|---|
-v, --verbose |
Enable verbose output for debugging |
Commands¶
build
Perform a complete build from scratch:
Options:
| Option | Values | Description |
|---|---|---|
--compiler |
gnu, intel |
Select compiler suite (default: gnu) |
--use-tecio |
— | Enable TecIO for binary Tecplot formats |
Examples:
# Build with GNU compiler, no TecIO
./install.sh build --compiler=gnu
# Build with Intel compiler and TecIO support
./install.sh build --compiler=intel --use-tecio
# Verbose build with all features
./install.sh -v build --compiler=gnu --use-tecio
compile
Recompile using existing CMake configuration stored in CMakePresets.json:
Use this after modifying source code to avoid reconfiguring the build system.
setvars
Set environment variables to use the converter from any directory:
After running this command, you can call ORION from any shell location.
Compiler-Specific Instructions¶
GNU Compiler (gfortran)
Most systems come with GNU compilers pre-installed:
# Check if gfortran is available
gfortran --version
# Build ORION
./install.sh build --compiler=gnu --use-tecio
Intel Compiler
For Intel oneAPI compilers:
# Source Intel environment (adjust path as needed)
source /opt/intel/oneapi/setvars.sh
# Build ORION
./install.sh build --compiler=intel --use-tecio
TecIO Support¶
TecIO enables reading and writing binary Tecplot formats (.plt, .szplt). When you use --use-tecio, the build system automatically compiles TecIO and links it with ORION.
TecIO is a C++ library built using boost. If a boost system installation is present, that one is used to build TecIO, otherwise, the boost files shipped with ORION will be used. TecIO building provides two folders in lib/TecIO:
tecio-build-<compilers>tecio-install-<compilers>
TecIO will not rebuilt unless these folders are removed by the user or the compilers are changed when recompiling ORION.
C++ Compiler Required
TecIO requires a C++ compiler. Ensure g++ or Intel C++ compiler is available.
Large Build Time
TecIO compilation can take several minutes on first build.
Verification¶
After installation, verify everything works:
Test the Converter
# Display help
ORION --help
# Test with sample data (if available)
ORION --input-format tecplot --input-file test.dat \
--output-format vtk --output-file test.vtk
Run Test Suite
This executes all Fortran unit tests and reports results.
Test Python Installation
# In Python shell
import ORION
print(ORION.__version__)
# Test reading a file
from ORION import read_TEC
# x, y, z, var, varnames = read_TEC('yourfile.dat')
Environment Setup¶
To use the ORION converter from anywhere, add to your shell configuration:
Bash/Zsh (~/.bashrc or ~/.zshrc):
Then reload your shell:
This operation should be performed by setvars command of install.sh.
Library Linking (Advanced)¶
To link ORION in external Fortran projects:
# Compile your program
gfortran -I/path/to/ORION/include \
-L/path/to/ORION/lib \
-lORION \
your_program.f90 -o your_program
Or use CMake's find_package:
Troubleshooting¶
Build Fails with "CMake not found"
Install CMake:
# Ubuntu/Debian
sudo apt-get install cmake
# macOS
brew install cmake
# Verify installation
cmake --version
"Compiler not found" Error
Ensure your compiler is in PATH:
TecIO Build Errors
If TecIO compilation fails:
- Ensure C++ compiler is available:
which g++ - Try building without TecIO first:
./install.sh build --compiler=gnu - Check compiler compatibility with TecIO documentation
Python Import Fails
# Ensure ORION is installed
pip list | grep ORION
# Reinstall if needed
pip uninstall ORION
pip install ORION
Next Steps¶
- Quick Start Tutorial: Learn ORION basics with a hands-on example
- User Guide: Explore the converter and API capabilities