Dear all,
I am trying to build a C script that sets the environment, invokes the ocean software and completes the simulation without any interventions required. (basically automating the whole simulation).
In the bigger picture, I want simulations to be invoked by MATLAB and I want the simulations to be performed in inputs varying iteratively (given by a Matlab algorithm).
The C script looks something like this:
csh
source /home/install/cshrc
ocean
load("test.ocn")
The problem is that the commands up to the line "ocean" work beautifully.
But I am not able to run the "load" command and is the reason I am not able to complete the simulation.
After some searching, I found that the "load" command can be placed in a .oceanrc file. But I am not sure it will work and also I am not able to find its directory nor have any idea where to place it.
Can anyone suggest a method so that I can complete this script?
Any leads are highly appreciated.
Thank You
Aksh Chordia