R/odeClass.R

Defines functions print.odemodel

## Methods of class odemodel

#' @export
print.odemodel <- function(x, ...) {
  
  func <- x$func
  extended <- x$extended
  
  suppressWarnings({
  
  cat("DLL name ODE: ", func, "\n", sep = "")
  cat("DLL name SENS: ", extended, "\n", sep = "")
  cat("Equations:\n", sep = "")
  print(as.eqnvec(attr(func, "equations")))
  cat("States:\n", sep = "")
  print(sort(attr(func, "variables")))
  cat("Parameters:\n", sep = "")
  print(sort(attr(func, "parameters")))
  cat("Forcings:\n", sep = "")
  print(sort(attr(func, "forcings")))
  
  })
}

Try the dMod package in your browser

Any scripts or data that you put into this service are public.

dMod documentation built on Jan. 27, 2021, 1:07 a.m.