Esempio n. 1
0
    def test_keywords_for_monitoring_simulation_runtime(self):
        ac = AnalysisConfig()

        # Unless the MIN_REALIZATIONS is set in config, one is required to have "all" realizations.
        self.assertFalse(ac.haveEnoughRealisations(5, 10))
        self.assertTrue(ac.haveEnoughRealisations(10, 10))

        ac.set_max_runtime(50)
        self.assertEqual(50, ac.get_max_runtime())

        ac.set_stop_long_running(True)
        self.assertTrue(ac.get_stop_long_running())
Esempio n. 2
0
    def test_keywords_for_monitoring_simulation_runtime(self):
        with TestAreaContext("analysis_config_init_test") as work_area:
            work_area.copy_directory(self.case_directory)
            ac = AnalysisConfig(self.case_file)

            # Unless the MIN_REALIZATIONS is set in config, one is required to have "all" realizations.
            self.assertFalse(ac.haveEnoughRealisations(5, 10))
            self.assertTrue(ac.haveEnoughRealisations(10, 10))

            ac.set_max_runtime(50)
            self.assertEqual(50, ac.get_max_runtime())

            ac.set_stop_long_running(True)
            self.assertTrue(ac.get_stop_long_running())