[ADMB Users] ofstream for output
Mollie Brooks
mbrooks at ufl.edu
Fri Sep 10 12:44:24 PDT 2010
Hi all,
If you have used ofstream to do in-procedure reporting, how did you
get it to work?
I found that it exists here
http://admb-project.org/documentation/developers/api/keywords.txt
I tried adding
GLOBALS_SECTION
ofstream out_stream;
out_stream.open("/scratch/ufhpc/mbrooks/trial.txt");
But I got these errors that point to the relevant lines of the cpp file:
admbponds_measurment_trial.cpp:1: error: ‘ofstream’ does not name a type
admbponds_measurment_trial.cpp:2: error: expected constructor,
destructor, or type conversion before ‘.’ token
admbponds_measurment_trial.cpp: In member function ‘virtual void
model_parameters::userfunction()’:
admbponds_measurment_trial.cpp:127: error: ‘out_stream’ was not
declared in this scope
Also, is there a way to search the history of this mailing list? Sorry
if this question has already been covered.
thanks,
Mollie
Mollie Brooks
Ph.D. Candidate
NSF IGERT Fellow
Biology Department
University of Florida
mbrooks at ufl.edu
www.zoology.ufl.edu/mbrooks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20100910/f4b8880d/attachment.html>
More information about the Users
mailing list