Separate input file
Moderators: silvia, selimgunay, Moderators
Separate input file
Separate input file
Last edited by mja165 on Wed Aug 14, 2013 6:37 pm, edited 1 time in total.
Re: Separate input file
simply pass the filename to the material constructor. in the constructor open up the file and place the contents into a Matrix or 2 Vectors. google the ways in C or C++ to open, read the data, and close files. In the getCopy() do not make copies of these Matrix and Vector objects, just use pointers (so you don't run out of memory is a lot of materials are created of this type).