46 myOutFile(outFileName, (asBinary ? (std::ios::binary | std::ios::
out) : std::ios::
out)),
47 myAsBinary(asBinary), myWriteZero(writeZero), myBufferPos(-1), myHasSpecial(
false)
55 std::cerr <<
"Mille::Mille: Could not open " << outFileName
56 <<
" as output file." << std::endl;
79 int NGL,
const float *derGl,
const int *
label,
80 float rMeas,
float sigma)
82 if (sigma <= 0.)
return;
92 for (
int i = 0;
i <
NLC; ++
i) {
106 for (
int i = 0;
i <
NGL; ++
i) {
113 std::cerr <<
"Mille::mille: Invalid label " << label[
i]
129 if (nSpecial == 0)
return;
132 std::cerr <<
"Mille::special: Special values already stored for this record."
153 for (
int i = 0;
i < nSpecial; ++
i) {
177 myOutFile.write(reinterpret_cast<const char*>(&numWordsToWrite),
178 sizeof(numWordsToWrite));
190 for (
int i = 0;
i < myBufferPos+1; ++
i) {
222 std::cerr <<
"Mille::checkBufferSize: Buffer too short ("
224 <<
"\n need space for nLocal (" << nLocal<<
")"
225 <<
"/nGlobal (" << nGlobal <<
") local/global derivatives, "