#!/bin/bash

export MOPS_DBINSTANCE=psmops_simtester_orbit_id_st
export MOPS_VAR=$MOPS_HOME/var/$MOPS_DBINSTANCE

# Build the instance.
buildInstance --noprompt psmops_simtester_orbit_id_st --description "ST"

# Insert the fields.
insertSyntheticFields St500RLH.fields

# Insert the objects.
insertSyntheticOrbits St500RLH.ssm

# Copy the nocondor files.
cp ./condor_submit $MOPS_VAR/bin
cp ./condor_wait $MOPS_VAR/bin

# Run the simulation
time mopper
