make_gadget_printfile: Make Gadget printfile and write out to file

Description Usage Arguments Value Examples

Description

Make Gadget printfile and write out to file

Usage

1
2
3
make_gadget_printfile(..., main = "main", path = NULL, fit_dir = NULL,
  output_dir = "out", aggfile_dir = "print.aggfiles", printatstart = 1,
  steps = "all")

Arguments

...

Any number of lists containing details of Gadget printfile components. Arguments to ... must be the same name as one of the default printfile lists, see printfileDefaults

main

List of class gadget_main or character vector of the Gadget mainfile to be read

path

Optional. Path to Gadget model

fit_dir

Optional. Path to sub-directory of Gadget model where optimized files are housed (i.e. WGTS from Rgadget::gadget.fit)

output_dir

Character. Path to the directory where printfiles will be written

aggfile_dir

Character. Path to the directory where aggfiles will be written

printatstart

A numeric value of 0 or 1. 0 indicates printing at end of timesteps. 1 indicates printing at the start

steps

The steps in which to print the various printfile components. Can be numeric or "all"

Value

NULL. Writes the printfiles provided in ... to the directory provided by output_dir

Examples

1
2
printfile <-  make_gadget_printfile(stock_std = list(stockname = "cod"),
                      path = gad_mod_dir)

inspktrgadget/gadgetSim documentation built on May 10, 2019, 9:51 a.m.