#!/bin/bash

echo "Usage : $0 arch"
echo " where arch is the architecture name passed to the build scripts"

echo "$0 $*" > rebuild_DYNAMICO.sh
chmod a+x rebuild_DYNAMICO.sh

ARCH=$1

cd modeles/XIOS
./make_xios --arch $ARCH --job 8

cd ../DYNAMICO
./make_icosa -arch $ARCH -parallel mpi -with_xios -job 8

cd ../DYNAMICO_phyparam
./make_dynamico_phyparam
