CAMP 1.0.0
Chemistry Across Multiple Phases
debug_diff_check.F90
Go to the documentation of this file.
1! Copyright (C) 2021 Barcelona Supercomputing Center and University of
2! Illinois at Urbana-Champaign
3! SPDX-License-Identifier: MIT
4
5!> \file
6!> The camp_debug_diff_check module
7
8!> Interfaces to the debug_diff_check c functions - NOT THREAD SAFE!
10
11 use iso_c_binding
12
13 implicit none
14 private
15
17
18 !> Interface to c functions for diff checker
19 interface
20
21 !> Do a difference check on the int, float, and env model data
22 subroutine diff_check( message ) bind (c)
23 use iso_c_binding
24 !> Message to print along with difference check
25 character(kind=c_char) :: message(*)
26 end subroutine diff_check
27
28 !> Check the dimensions of the data and update the saved
29 !! values, but do not compare data
30 subroutine diff_check_update_only( message ) bind (c)
31 use iso_c_binding
32 !> Message to print along with the update
33 character(kind=c_char) :: message(*)
34 end subroutine diff_check_update_only
35
36 end interface
37
38contains
39
40end module camp_debug_diff_check
Check the dimensions of the data and update the saved values, but do not compare data.
Interface to c functions for diff checker.
Interfaces to the debug_diff_check c functions - NOT THREAD SAFE!