Save the outputs of each simulation

For each simulation the function writes the gmacs.dat, data, control, and projection files in the Runs folder created by the prepSim() functions. The function also writes a batch command that will be called to when running Gmacs (name of the file RunSim.bat).

SaveSimFiles(
  simDat = NULL,
  UsePar = NULL,
  NoEst = NULL,
  Isim = NULL,
  Nsim = NULL,
  Dir_TPL = NULL
)

Arguments

simDat

(list)- the output of the SimData() function for each simulation.

UsePar

(logical)- Do the simulations use a .PIN file to import parameters?

NoEst

(logical)- Set the maximum function call to 1? i.e., run estimation?

Isim

(integer)- the current simulation.

Nsim

(integer)- the number of simulation to run.

Dir_TPL

(character string)- the directory where the gmacsbase.TPL file you are using for the stock assessment is hold.

Value

Nothing