... | @@ -163,7 +163,9 @@ It mimic quite closely the configuration file provided by the user. |
... | @@ -163,7 +163,9 @@ It mimic quite closely the configuration file provided by the user. |
|
To check that the radiative part of the physic has been requested, we will use a piece of code like (note that as radiative is a special case of adiabatic, we fist check that adiabatic physic is also requested):
|
|
To check that the radiative part of the physic has been requested, we will use a piece of code like (note that as radiative is a special case of adiabatic, we fist check that adiabatic physic is also requested):
|
|
```
|
|
```
|
|
if (physic().adiabatic && physic().adiabatic->radiative) {
|
|
if (physic().adiabatic && physic().adiabatic->radiative) {
|
|
... do what need to be done
|
|
if (physic().adiabatic->radiative->opacityLaw == OL_CONSTANT) {
|
|
|
|
... do what need to be done
|
|
|
|
}
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
... | | ... | |