Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
elpa
elpa
Commits
1f343334
Commit
1f343334
authored
Apr 07, 2017
by
Andreas Marek
Browse files
Put module assert in independent file
parent
a18baba0
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Makefile.am
View file @
1f343334
...
...
@@ -495,6 +495,7 @@ libelpatest@SUFFIX@_la_SOURCES = \
test
/shared/setup_mpi.F90
\
test
/shared/blacs_infrastructure.F90
\
test
/shared/prepare_matrix.F90
\
test
/shared/mod_assert.F90
\
test
/shared/prepare_matrix_template.X90
\
test
/shared/mod_output_types.F90
\
test
/shared/mod_from_c.F90
\
...
...
test/Fortran/test_new_interface_complex.F90
View file @
1f343334
...
...
@@ -46,22 +46,6 @@
#define stringify(x) stringify_(x)
#define assert(x) call x_assert(x, stringify(x), __FILE__, __LINE__)
module
assert
implicit
none
contains
subroutine
x_assert
(
condition
,
condition_string
,
file
,
line
)
use
elpa_utilities
,
only
:
error_unit
logical
,
intent
(
in
)
::
condition
character
(
len
=*
),
intent
(
in
)
::
condition_string
character
(
len
=*
),
intent
(
in
)
::
file
integer
,
intent
(
in
)
::
line
if
(
.not.
condition
)
then
write
(
error_unit
,
'(a,i0)'
)
"Assertion failed:"
//
condition_string
//
" at "
//
file
//
":"
,
line
end
if
end
subroutine
end
module
program
test_interface
use
precision
use
assert
...
...
test/Fortran/test_new_interface_complex_single.F90
View file @
1f343334
...
...
@@ -46,22 +46,6 @@
#define stringify(x) stringify_(x)
#define assert(x) call x_assert(x, stringify(x), __FILE__, __LINE__)
module
assert
implicit
none
contains
subroutine
x_assert
(
condition
,
condition_string
,
file
,
line
)
use
elpa_utilities
,
only
:
error_unit
logical
,
intent
(
in
)
::
condition
character
(
len
=*
),
intent
(
in
)
::
condition_string
character
(
len
=*
),
intent
(
in
)
::
file
integer
,
intent
(
in
)
::
line
if
(
.not.
condition
)
then
write
(
error_unit
,
'(a,i0)'
)
"Assertion failed:"
//
condition_string
//
" at "
//
file
//
":"
,
line
end
if
end
subroutine
end
module
program
test_interface
use
precision
use
assert
...
...
test/Fortran/test_new_interface_real.F90
View file @
1f343334
...
...
@@ -46,22 +46,6 @@
#define stringify(x) stringify_(x)
#define assert(x) call x_assert(x, stringify(x), __FILE__, __LINE__)
module
assert
implicit
none
contains
subroutine
x_assert
(
condition
,
condition_string
,
file
,
line
)
use
elpa_utilities
,
only
:
error_unit
logical
,
intent
(
in
)
::
condition
character
(
len
=*
),
intent
(
in
)
::
condition_string
character
(
len
=*
),
intent
(
in
)
::
file
integer
,
intent
(
in
)
::
line
if
(
.not.
condition
)
then
write
(
error_unit
,
'(a,i0)'
)
"Assertion failed:"
//
condition_string
//
" at "
//
file
//
":"
,
line
end
if
end
subroutine
end
module
program
test_interface
use
precision
use
assert
...
...
test/Fortran/test_new_interface_real_single.F90
View file @
1f343334
...
...
@@ -46,22 +46,6 @@
#define stringify(x) stringify_(x)
#define assert(x) call x_assert(x, stringify(x), __FILE__, __LINE__)
module
assert
implicit
none
contains
subroutine
x_assert
(
condition
,
condition_string
,
file
,
line
)
use
elpa_utilities
,
only
:
error_unit
logical
,
intent
(
in
)
::
condition
character
(
len
=*
),
intent
(
in
)
::
condition_string
character
(
len
=*
),
intent
(
in
)
::
file
integer
,
intent
(
in
)
::
line
if
(
.not.
condition
)
then
write
(
error_unit
,
'(a,i0)'
)
"Assertion failed:"
//
condition_string
//
" at "
//
file
//
":"
,
line
end
if
end
subroutine
end
module
program
test_interface
use
precision
use
assert
...
...
test/shared/mod_assert.F90
0 → 100644
View file @
1f343334
module
assert
implicit
none
contains
subroutine
x_assert
(
condition
,
condition_string
,
file
,
line
)
use
elpa_utilities
,
only
:
error_unit
logical
,
intent
(
in
)
::
condition
character
(
len
=*
),
intent
(
in
)
::
condition_string
character
(
len
=*
),
intent
(
in
)
::
file
integer
,
intent
(
in
)
::
line
if
(
.not.
condition
)
then
write
(
error_unit
,
'(a,i0)'
)
"Assertion failed:"
//
condition_string
//
" at "
//
file
//
":"
,
line
end
if
end
subroutine
end
module
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment