void CoeffsBase::writeIterationCounterAndTimeToFile(OFile& ofile) const { if(time_md>=0.0) { ofile.fmtField("%f"); ofile.addConstantField(field_time_).printField(field_time_,time_md); ofile.fmtField(); } ofile.addConstantField(field_iteration_).printField(field_iteration_,(int) iteration_opt); }
void CoeffsBase::writeCoeffsInfoToFile(OFile& ofile) const { ofile.addConstantField(field_type_).printField(field_type_,getTypeStr()); ofile.addConstantField(field_ndimensions_).printField(field_ndimensions_,(int) numberOfDimensions()); ofile.addConstantField(field_ncoeffs_total_).printField(field_ncoeffs_total_,(int) numberOfCoeffs()); for(unsigned int k=0; k<numberOfDimensions(); k++) { ofile.addConstantField(field_shape_prefix_+getDimensionLabel(k)); ofile.printField(field_shape_prefix_+getDimensionLabel(k),(int) shapeOfIndices(k)); } }