CHANGES:
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:
parent
51573cfa23
commit
37b71a532f
|
@ -40,9 +40,10 @@ bool GdsLibrary::write(string filename) {
|
||||||
<< " LASTACC {" << date << "};" << endl
|
<< " LASTACC {" << date << "};" << endl
|
||||||
<< "LIBNAME " << _libName << ".DB;" << endl
|
<< "LIBNAME " << _libName << ".DB;" << endl
|
||||||
<< "UNITS;" << endl
|
<< "UNITS;" << endl
|
||||||
<< " USERUNITS " << _userUnits << ";" << endl
|
<< " USERUNITS " << _userUnits << ";" << endl;
|
||||||
<< " PHYSUNITS " << _physUnits << ";" << endl
|
file << scientific << " PHYSUNITS " << _physUnits << ";" << endl
|
||||||
<< endl;
|
<< endl;
|
||||||
|
file.unsetf(ios::floatfield);
|
||||||
|
|
||||||
// For each Struct : write struct.
|
// For each Struct : write struct.
|
||||||
for ( vector<GdsStructure*>::iterator it = _structs.begin() ; it < _structs.end() ; it++ ) {
|
for ( vector<GdsStructure*>::iterator it = _structs.begin() ; it < _structs.end() ; it++ ) {
|
||||||
|
|
Loading…
Reference in New Issue