FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
idefix/src/dataBlock/validation.cpp at master · idefix-code/idefix · GitHub
idefix-code
idefix
Repository navigation
Code
Issues
3
(3)
Pull requests
9
(9)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
idefix
/
src
/
dataBlock
/
validation.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (35 loc) · 1.14 KB
Breadcrumbs
idefix
/
src
/
dataBlock
/
validation.cpp
Copy path
File metadata and controls
40 lines (35 loc) · 1.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
***********************************************************************************
//
Idefix MHD astrophysical code
//
//
Source file src/dataBlock/validation.cpp
//
//
Last modified : 10/2023
//
//
Copyright(C) by :
//
- Geoffroy Lesur <geoffroy.lesur@univ-grenoble-alpes.fr> (IPAG/UGA/CNRS - 2020 - 2023)
//
- Soufiane Baghdadi <soufiane.baghdadi@univ-grenoble-alpes.fr> (IPAG/UGA/CNRS - 2020)
//
- Clément Robert <clement.robert@univ-grenoble-alpes.fr> (IPAG/UGA/CNRS - 2021 - 2023)
//
and other code contributors
//
//
Licensed under CeCILL 2.1 License, see COPYING for more information
//
***********************************************************************************
#
include
"
dataBlock.hpp
"
#
include
"
fluid.hpp
"
int
DataBlock::CheckNan
() {
idfx::pushRegion
(
"
DataBlock::Check
"
);
int
nNans = hydro->
CheckNan
();
if
(haveDust) {
for
(
int
n =
0
; n < dust.
size
() ; n++) {
nNans += dust[n]->
CheckNan
();
}
}
idfx::popRegion
();
return
(nNans);
}
void
DataBlock::Validate
() {
idfx::pushRegion
(
"
DataBlock::Validate
"
);
if
(
this
->
CheckNan
()) {
IDEFIX_ERROR
(
"
Nans were found in your initial conditions.
"
);
}
idfx::popRegion
();
}
Back
|
FazBrowse Home
|
New Git URL