|
14 | 14 | #include "4C_io.hpp" |
15 | 15 | #include "4C_io_control.hpp" |
16 | 16 | #include "4C_levelset_timint_ost.hpp" |
17 | | -#include "4C_levelset_timint_stat.hpp" |
18 | 17 | #include "4C_linear_solver_method.hpp" |
19 | 18 | #include "4C_linear_solver_method_linalg.hpp" |
20 | 19 | #include "4C_scatra_resulttest_hdg.hpp" |
@@ -257,86 +256,26 @@ Adapter::ScaTraBaseAlgorithm::ScaTraBaseAlgorithm(const Teuchos::ParameterList& |
257 | 256 | } |
258 | 257 | default: |
259 | 258 | FOUR_C_THROW("Unknown time integration scheme for electrochemistry!"); |
260 | | - break; |
261 | 259 | } |
262 | 260 | } |
263 | 261 |
|
264 | | - // levelset |
265 | | - else if (probtype == Core::ProblemType::level_set or probtype == Core::ProblemType::fluid_xfem_ls) |
| 262 | + // level-set |
| 263 | + else if (probtype == Core::ProblemType::level_set) |
266 | 264 | { |
267 | | - std::shared_ptr<Teuchos::ParameterList> lsparams = nullptr; |
268 | | - switch (probtype) |
269 | | - { |
270 | | - case Core::ProblemType::level_set: |
271 | | - lsparams = std::make_shared<Teuchos::ParameterList>(prbdyn); |
272 | | - break; |
273 | | - default: |
274 | | - { |
275 | | - if (!lsparams) |
276 | | - lsparams = std::make_shared<Teuchos::ParameterList>( |
277 | | - Global::Problem::instance()->level_set_control()); |
278 | | - // overrule certain parameters for coupled problems |
279 | | - // this has already been ensured for scatratimeparams, but has also been ensured for the |
280 | | - // level-set parameter in a hybrid approach time step size |
281 | | - lsparams->set<double>("TIMESTEP", prbdyn.get<double>("TIMESTEP")); |
282 | | - // maximum simulation time |
283 | | - lsparams->set<double>("MAXTIME", prbdyn.get<double>("MAXTIME")); |
284 | | - // maximum number of timesteps |
285 | | - lsparams->set<int>("NUMSTEP", prbdyn.get<int>("NUMSTEP")); |
286 | | - // restart |
287 | | - lsparams->set<int>("RESTARTEVERY", prbdyn.get<int>("RESTARTEVERY")); |
288 | | - // solution output |
289 | | - lsparams->set<int>("RESULTSEVERY", prbdyn.get<int>("RESULTSEVERY")); |
290 | | - |
291 | | - break; |
292 | | - } |
293 | | - } |
| 265 | + auto lsparams = std::make_shared<Teuchos::ParameterList>(prbdyn); |
294 | 266 |
|
295 | 267 | switch (timintscheme) |
296 | 268 | { |
297 | 269 | case Inpar::ScaTra::timeint_one_step_theta: |
298 | 270 | { |
299 | | - // create instance of time integration class (call the constructor) |
| 271 | + // create an instance of time integration class |
300 | 272 | scatra_ = std::make_shared<ScaTra::LevelSetTimIntOneStepTheta>( |
301 | 273 | discret, solver, lsparams, scatratimeparams, extraparams, output); |
302 | 274 | break; |
303 | 275 | } |
304 | | - case Inpar::ScaTra::timeint_stationary: |
305 | | - { |
306 | | - // create instance of time integration class (call the constructor) |
307 | | - switch (probtype) |
308 | | - { |
309 | | - case Core::ProblemType::level_set: |
310 | | - { |
311 | | - FOUR_C_THROW( |
312 | | - "Stationary time integration scheme only supported for a selection of coupled " |
313 | | - "level-set problems!"); |
314 | | - exit(EXIT_FAILURE); |
315 | | - } |
316 | | - default: |
317 | | - { |
318 | | - scatra_ = std::make_shared<ScaTra::LevelSetTimIntStationary>( |
319 | | - discret, solver, lsparams, scatratimeparams, extraparams, output); |
320 | | - break; |
321 | | - } |
322 | | - } |
323 | | - break; |
324 | | - } |
325 | | - case Inpar::ScaTra::timeint_gen_alpha: |
326 | | - { |
327 | | - switch (probtype) |
328 | | - { |
329 | | - default: |
330 | | - FOUR_C_THROW("Unknown time-integration scheme for level-set problem"); |
331 | | - exit(EXIT_FAILURE); |
332 | | - } |
333 | | - |
334 | | - break; |
335 | | - } |
336 | 276 | default: |
337 | 277 | FOUR_C_THROW("Unknown time-integration scheme for level-set problem"); |
338 | | - break; |
339 | | - } // switch(timintscheme) |
| 278 | + } |
340 | 279 | } |
341 | 280 |
|
342 | 281 | // cardiac monodomain |
|
0 commit comments