Removing trailing spaces and adding eol at eof

This commit is contained in:
David Landa Marban committed 2025-10-02 10:22:55 +02:00
1 parent 30cc3378ce
commit 1fd280c68d
211 files changed
+749 -804

No files matched your search

+1 -1
View File
@@ -59,4 +59,4 @@ poro = poro *.95
sim.set_porosity(poro)
sim.step()
sim.step_cleanup()
```
```
@@ -24,4 +24,3 @@ apt-get install -y --no-install-recommends \
tk-dev libffi-dev liblzma-dev
rm -rf /var/lib/apt/lists/*
@@ -21,7 +21,7 @@ def get_config_path() -> Path:
config_path = repo_root / "python/docker/python_versions.json"
if config_path.exists():
return config_path
raise FileNotFoundError(
"Could not locate python_versions.json. Either run from within "
"opm-simulators repository or set OPM_SIMULATORS_ROOT environment variable."
@@ -53,4 +53,4 @@ def get_default_versions() -> List[str]:
def get_python_version_objects() -> List[PythonVersion]:
"""Get PythonVersion objects for all default versions."""
default_versions = get_default_versions()
return [PythonVersion.from_str(version) for version in default_versions]
return [PythonVersion.from_str(version) for version in default_versions]
-2
View File
@@ -162,5 +162,3 @@ configure_file(${PROJECT_SOURCE_DIR}/python/setup.py.in
${PROJECT_BINARY_DIR}/python/setup.py.tmp @ONLY)
file(GENERATE OUTPUT ${PROJECT_BINARY_DIR}/python/setup.py
INPUT ${PROJECT_BINARY_DIR}/python/setup.py.tmp)
@@ -106,4 +106,3 @@ PYBIND11_MODULE(BlackOil, m)
}
} // namespace Opm::Pybind
@@ -133,4 +133,3 @@ PYBIND11_MODULE(GasWater, m)
}
} // namespace Opm::Pybind
+1 -1
View File
@@ -28,7 +28,7 @@
#include <string>
namespace Opm::Properties {
//! The indices required by the model
template<class TypeTag>
struct Indices<TypeTag, TTag::FlowOnePhaseProblem>
-1
View File
@@ -76,4 +76,3 @@ def create_onephase_simulator(*args, **kwargs):
kwargs['args'].append(flag_to_add)
return OnePhaseSimulator(*args, **kwargs)
+2 -5
View File
@@ -33,7 +33,7 @@ class TestBasic(unittest.TestCase):
self.assertAlmostEqual(dt, 86400., places=7, msg='value of timestep')
vol = sim.get_cell_volumes()
self.assertEqual(len(vol), 300, 'length of volume vector')
# NOTE: The volume should be 1000 ft x 1000 ft x 20 ft * 0.3 (porosity)
# NOTE: The volume should be 1000 ft x 1000 ft x 20 ft * 0.3 (porosity)
# = 600000 ft^3 = 566336.93 m^3
self.assertAlmostEqual(vol[0], 566336.93, places=2, msg='value of volume')
poro = sim.get_porosity()
@@ -44,7 +44,7 @@ class TestBasic(unittest.TestCase):
sim.step()
poro2 = sim.get_porosity()
self.assertAlmostEqual(poro2[0], 0.285, places=7, msg='value of porosity 2')
def test_02_onephase(self):
with pushd(self.data_dir_op):
sim = create_onephase_simulator(args=['--linear-solver=ilu0'], filename="SPE1CASE1_WATER.DATA")
@@ -85,6 +85,3 @@ class TestBasic(unittest.TestCase):
sim.step()
poro2 = sim.get_porosity()
self.assertAlmostEqual(poro2[0], 0.285, places=7, msg='value of porosity 2')
-1
View File
@@ -16,4 +16,3 @@ class TestBasic(unittest.TestCase):
# has not been initialized
with self.assertRaises(RuntimeError):
sim.get_dt()