CRAVA / crava

6 stars 13 forks source link

Bug/crash when importing horizon #254

Open tinaek opened 7 years ago

tinaek commented 7 years ago

Inversion stops when reading surface, this is the terminal output, the surface is in xyz-ASCII format with a header included:

Setting top and base surfaces for the entire inversion volume: Top surface: Flat surface at depth 1500.00 Base surface file name: /project/path/tinek_PRM_temp/SimSource/CRAVA/INPUT/Horizons/ML_SimsorXYZ.txt crava: ../libs/nrlib/surface/../grid/grid2d.hpp:147: size_t NRLib::Grid2D::GetIndex(size_t, sizet) const [with A = double]: Assertion `j < nj' failed.

hgolsen commented 7 years ago

There is a requirement for the surfaces to have an even sampling and it looks like this ML_SimsorXYZ surface has an uneven surface. We have for now added an error message if this happens.