mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4209 Support other units than metric when exporting input grid.
This commit is contained in:
parent
ed88147d53
commit
646d79ce57
@ -331,7 +331,13 @@ bool RifEclipseInputFileTools::exportGrid(const QString& fileName,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ecl_grid_fprintf_grdecl(mainEclGrid, filePtr);
|
ert_ecl_unit_enum ecl_units = ECL_METRIC_UNITS;
|
||||||
|
if (eclipseCase->unitsType() == RiaEclipseUnitTools::UNITS_FIELD)
|
||||||
|
ecl_units = ECL_FIELD_UNITS;
|
||||||
|
else if (eclipseCase->unitsType() == RiaEclipseUnitTools::UNITS_LAB)
|
||||||
|
ecl_units = ECL_LAB_UNITS;
|
||||||
|
|
||||||
|
ecl_grid_fprintf_grdecl2(mainEclGrid, filePtr, ecl_units);
|
||||||
ecl_grid_free(mainEclGrid);
|
ecl_grid_free(mainEclGrid);
|
||||||
fclose(filePtr);
|
fclose(filePtr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user