OPM-203 Added supoort for converting of Metric grid values

This commit is contained in:
Fredrik Gundersen 2015-05-21 12:32:44 +02:00
parent 32b3aff8ea
commit 01282a49f2

View File

@ -547,8 +547,13 @@ public:
eclGrid->resetACTNUM(&actnumData[0]);
// finally, write the grid to disk
eclGrid->fwriteEGRID(egridFileName_.ertHandle());
if (eclipseState->getDeckUnitSystem()->getType() == UnitSystem::UNIT_TYPE_METRIC){
eclGrid->fwriteEGRID(egridFileName_.ertHandle(), true);
}else{
eclGrid->fwriteEGRID(egridFileName_.ertHandle(), false);
}
Keyword<float> poro_kw("PORO", dataField);
ecl_init_file_fwrite_header(ertHandle(),