UNISIS
UNISIS is a coarse-grained model for RNA and a molecular dynamics simulation package implementing this model, written in Modern Fortran.
Installation
Requirements
- CMake 3.15 or newer
- A Fortran compiler such as
gfortran or Intel Fortran
- MPI Fortran compiler/runtime, only when building the MPI executable
UNISIS uses bundled subprojects for TOML parsing and random number generation, so no separate installation of those libraries is required.
Getting A Released Version
General users should install a tagged release instead of the moving development branch.
git clone https://github.com/Hori-Lab/UNISIS.git
cd UNISIS
git checkout v2026.08
Quick Installation
The simplest way to build and install UNISIS is the installer script:
./scripts/install.sh --serial --prefix ~/.local # serial executable only
./scripts/install.sh --mpi --prefix ~/.local # MPI executable only
./scripts/install.sh --both --prefix ~/.local # serial and MPI executables
The script configures a clean build-install/ directory, builds UNISIS in Release mode and then runs cmake --install. If --prefix is omitted, ~/.local is used.
If cmake is not on PATH, set CMAKE=/path/to/cmake when running the script.
Installed executables are placed in:
~/.local/bin/unisis
~/.local/bin/unisis_mpi
The MPI executable is always named unisis_mpi, even when it is the only variant installed.
Installation With CMake
The installer script is a thin wrapper around CMake. To control the build yourself, run CMake directly.
Serial-only installation:
cmake -S . -B build-install \
-DCMAKE_BUILD_TYPE=Release \
-DUNISIS_BUILD_SERIAL=ON \
-DUNISIS_BUILD_MPI=OFF
cmake --build build-install -j
cmake --install build-install --prefix ~/.local
MPI-only installation:
cmake -S . -B build-install \
-DCMAKE_BUILD_TYPE=Release \
-DUNISIS_BUILD_SERIAL=OFF \
-DUNISIS_BUILD_MPI=ON
cmake --build build-install -j
cmake --install build-install --prefix ~/.local
Serial + MPI installation:
cmake -S . -B build-install \
-DCMAKE_BUILD_TYPE=Release \
-DUNISIS_BUILD_SERIAL=ON \
-DUNISIS_BUILD_MPI=ON
cmake --build build-install -j
cmake --install build-install --prefix ~/.local
PATH Configuration
If ~/.local/bin is not already in your PATH, add it in your shell startup file:
export PATH="$HOME/.local/bin:$PATH"
Checking The Installed Version
unisis --version
unisis_mpi --version
Typical output:
UNISIS 2026.08 (serial)
UNISIS 2026.08 (MPI)
Normal simulation startup output also records the UNISIS version and build variant for reproducibility.
UNISIS releases are labeled by year and month (YYYY.MM, e.g. 2026.08), and the corresponding Git tags are prefixed with v (e.g. v2026.08).
Updating UNISIS
To update to a new release, check out the new release and install it into the same prefix:
git fetch --tags
git checkout v2026.10
./scripts/install.sh --both --prefix ~/.local
The installer script always starts from a clean build-install/ directory. When using CMake directly, remove the old build directory first:
rm -rf build-install
cmake -S . -B build-install \
-DCMAKE_BUILD_TYPE=Release \
-DUNISIS_BUILD_SERIAL=ON \
-DUNISIS_BUILD_MPI=ON
cmake --build build-install -j
cmake --install build-install --prefix ~/.local
Installing into the same prefix replaces the executable variants built by the new configuration. If you switch from a combined installation to serial-only, an older ~/.local/bin/unisis_mpi may remain until you uninstall it or remove that file explicitly.
Uninstalling UNISIS
After an installation build (with the installer script or with CMake), CMake writes an install manifest. To remove files installed by that build:
cmake --build build-install --target uninstall
This removes only files listed in that build directory’s install manifest.
评论