conversion_functions.h Source File

CPP API: conversion_functions.h Source File
conversion_functions.h
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2020-2026 MEmilio
3 *
4 * Authors: Julia Bicker
5 *
6 * Contact: Martin J. Kuehn <Martin.Kuehn@DLR.de>
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20 
21 #ifndef MIO_HYBRID_CONVERSION_FUNCTIONS_H
22 #define MIO_HYBRID_CONVERSION_FUNCTIONS_H
23 
25 #include "d_abm/simulation.h"
26 #include "d_abm/single_well.h"
27 #include "smm/simulation.h"
29 #include "ode_secir/model.h"
30 
31 namespace mio
32 {
33 namespace hybrid
34 {
35 
36 // This header contains template specilizations for the convert_model function, see mio::hybrid::TemporalHybridSimulation. This function is needed to convert one model to another when the switching condition in the temporal-hybrid model is fulfilled. The TemporalHybridSimulation can be used with any combination of two models, but the template specilizations of the convert_model function have to be provided here.
37 
38 template <>
41 
42 template <>
46 
47 template <>
50 
51 template <>
54 
55 } //namespace hybrid
56 
57 } //namespace mio
58 
59 #endif //MIO_HYBRID_CONVERSION_FUNCTIONS_H
Implementation of diffusive ABM, see dabm::Model.
Definition: single_well.h:78
Run the Simulation in discrete steps, evolve the Model and report results.
Definition: models/abm/simulation.h:37
A specialized Simulation for mio::dabm::Model.
Definition: models/d_abm/simulation.h:41
Definition: ode_secir/model.h:64
Stochastic Metapopulation Model.
Definition: smm/model.h:56
A specialized Simulation for mio::smm::Model.
Definition: models/smm/simulation.h:41
double ScalarType
Configuration of memilio library.
Definition: memilio/config.h:30
void convert_model(const dabm::Simulation< SingleWell< mio::osecir::InfectionState >> &current_model, smm::Simulation< ScalarType, mio::osecir::InfectionState > &target_model)
Definition: conversion_functions.cpp:38
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30