#!/bin/bash

# In this script we showcase how to run CLAIRE in parallel.
# We use a neuroimaging dataset. We perform a parameter 
# continuation until we reach a target regularization 
# parameter.


# the datasets are two brain images of size 128x150x128

# define directory for binary (relative path)
bindir=../../bin

# define directory for data (relative path)
datdir=../data

# execute claire with default settings in parallel
mpirun -np 20 $bindir/claire --reference $datdir/brain01.nii.gz --template $datdir/brain02.nii.gz --beta-target 7.750000e-04


#### commands explained
# > mpirun -np 20   --- execute with 20 MPI tasks 
# > $bindir/claire  --- name of the binary 
# > --reference <file> --- reference image (fixed image)
# > --template <file> --- template image (image to be registered) 
# > --beta-target <dbl> --- use continuation in regularization
#                       parameter until target regularization
#                       parameter is reached 




################################################################
# This script is part of the C++ software
#                        ---  CLAIRE  ---
# For details see https://github.com/andreasmang/claire
################################################################
