PHYSUNITS value is written with scientific representation in order not to write 1e-9 which is not recongnized by agds to gds converter.
This commit is contained in:
Damien Dupuis 2010-01-14 08:26:41 +00:00
parent 51573cfa23
commit 37b71a532f
1 changed files with 3 additions and 2 deletions

View File

@ -40,9 +40,10 @@ bool GdsLibrary::write(string filename) {
<< " LASTACC {" << date << "};" << endl
<< "LIBNAME " << _libName << ".DB;" << endl
<< "UNITS;" << endl
<< " USERUNITS " << _userUnits << ";" << endl
<< " PHYSUNITS " << _physUnits << ";" << endl
<< " USERUNITS " << _userUnits << ";" << endl;
file << scientific << " PHYSUNITS " << _physUnits << ";" << endl
<< endl;
file.unsetf(ios::floatfield);
// For each Struct : write struct.
for ( vector<GdsStructure*>::iterator it = _structs.begin() ; it < _structs.end() ; it++ ) {