From 37b71a532fead7a9fc702197c578cd0673fc6908 Mon Sep 17 00:00:00 2001 From: Damien Dupuis Date: Thu, 14 Jan 2010 08:26:41 +0000 Subject: [PATCH] CHANGES: PHYSUNITS value is written with scientific representation in order not to write 1e-9 which is not recongnized by agds to gds converter. --- vlsisapd/agds/GdsLibrary.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vlsisapd/agds/GdsLibrary.cpp b/vlsisapd/agds/GdsLibrary.cpp index b200f6e2..1808a06b 100644 --- a/vlsisapd/agds/GdsLibrary.cpp +++ b/vlsisapd/agds/GdsLibrary.cpp @@ -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::iterator it = _structs.begin() ; it < _structs.end() ; it++ ) {