ADMB Documentation  11.1.1952
 All Classes Files Functions Variables Typedefs Friends Defines
Functions | Variables
tpl2cpp_output.cpp File Reference

(// $Id: tpl2cpp_output.cpp 1737 2014-03-04 21:03:35Z johnoel $)

Typical output from the preprosessor "tpl2cpp". More...

Go to the source code of this file.

Functions

void ad_boundf (int i)
 Function being called when the program has "walks out of an array" if the program has been compiled in "safe mode" (admb -s).
int main (int argc, char *argv[])
 Entry point for the program (as in standard C/C++).

Variables

long int arrmblsize = 0

Detailed Description

Typical output from the preprosessor "tpl2cpp".

This file is generated by the command

tpl2cpp tpl2cpp_output

in a case case there the model is contained in "tpl2cpp_output.tpl". Hence the contents of tpl2cpp_output.cpp is model specific, and only generic aspects are documented.

Definition in file tpl2cpp_output.cpp.


Function Documentation

void ad_boundf ( int  i)

Function being called when the program has "walks out of an array" if the program has been compiled in "safe mode" (admb -s).

The purpose of the function is to allow the user to set a breakpoint for the debugger at a point just before the program terminates. The reason for locating ad_boundf() in the model specific file is to give the user easy access to the function.

Parameters:
ithe "exit status" set by the calling function.

Definition at line 207 of file tpl2cpp_output.cpp.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

Entry point for the program (as in standard C/C++).

Parameters:
argcnumber of command line arguments (in a standard C sense).
argvstring of command line arguments (in a standard C sense).

This is the function in which the execution of the model starts (and ends if excecution goes normally). Main activities:

i) Create an object "mp" containing all model parameters. This implicitely involves the two subtasks:

  • Setting up the model data object
  • Setting up the function minimizer object.

ii) Performes preliminary calculations (on the data).

ii) Performes function minimization.

Definition at line 172 of file tpl2cpp_output.cpp.


Variable Documentation

long int arrmblsize = 0

Definition at line 153 of file tpl2cpp_output.cpp.

Referenced by main().