Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
elpa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
elpa
elpa
Commits
3ac78c9a
Commit
3ac78c9a
authored
Feb 09, 2017
by
Andreas Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup of template include in elpa2.F90
parent
4126e87e
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
12 deletions
+28
-12
src/elpa2.F90
src/elpa2.F90
+0
-4
src/precision_macros.h
src/precision_macros.h
+28
-8
No files found.
src/elpa2.F90
View file @
3ac78c9a
...
...
@@ -360,7 +360,6 @@ module ELPA2
contains
#define DOUBLE_PRECISION_REAL
#define REALCASE 1
#define DOUBLE_PRECISION 1
#include "precision_macros.h"
...
...
@@ -407,7 +406,6 @@ module ELPA2
#include "elpa2_template.X90"
#undef REALCASE
#undef DOUBLE_PRECISION
#undef DOUBLE_PRECISION_REAL
#ifdef WANT_SINGLE_PRECISION_REAL
#define REALCASE 1
...
...
@@ -459,7 +457,6 @@ module ELPA2
#endif /* WANT_SINGLE_PRECISION_REAL */
#define DOUBLE_PRECISION_COMPLEX 1
#define COMPLEXCASE 1
#define DOUBLE_PRECISION 1
#include "precision_macros.h"
...
...
@@ -504,7 +501,6 @@ module ELPA2
#include "elpa2_template.X90"
#undef COMPLEXCASE
#undef DOUBLE_PRECISION
#undef DOUBLE_PRECISION_COMPLEX
#ifdef WANT_SINGLE_PRECISION_COMPLEX
...
...
src/precision_macros.h
View file @
3ac78c9a
#ifdef REALCASE
#undef DOUBLE_PRECISION_REAL
#undef MATH_DATATYPE
#define MATH_DATATYPE real
#undef PRECISION
#undef PRECISION_STR
...
...
@@ -38,7 +39,11 @@
#undef MPI_REAL_PRECISION
#undef C_DATATYPE_KIND
/* General definitions needed in single and real case */
#define MATH_DATATYPE real
#ifdef DOUBLE_PRECISION
#define DOUBLE_PRECISION_REAL
#define PRECISION double
#define PRECISION_STR 'double'
#define PRECISION_SUFFIX "_double"
...
...
@@ -74,9 +79,11 @@
#define size_of_PRECISION_real size_of_double_real_datatype
#define MPI_REAL_PRECISION MPI_REAL8
#define C_DATATYPE_KIND c_double
#endif
#endif
/* DOUBLE_PRECISION */
#ifdef SINGLE_PRECISION
#define PRECISION single
#define PRECISION_STR 'single'
#define PRECISION_SUFFIX "_single"
...
...
@@ -112,12 +119,15 @@
#define size_of_PRECISION_real size_of_single_real_datatype
#define MPI_REAL_PRECISION MPI_REAL4
#define C_DATATYPE_KIND c_float
#endif
#endif
#endif
/* SINGLE_PRECISION */
#endif
/* REALCASE */
#ifdef COMPLEXCASE
#undef DOUBLE_PRECISION_COMPLEX
#undef MATH_DATATYPE
#define MATH_DATATYPE complex
#undef PRECISION
#undef PRECISION_STR
#undef PRECISION_GEMV
...
...
@@ -162,7 +172,13 @@
#undef CONST_COMPLEX_1_0
#undef size_of_PRECISION_complex
#undef C_DATATYPE_KIND
/* General definitions needed in single and double case */
#define MATH_DATATYPE complex
#ifdef DOUBLE_PRECISION
#define DOUBLE_PRECISION_COMPLEX
#define PRECISION double
#define PRECISION_STR 'double'
#define PRECISION_SUFFIX "_double"
...
...
@@ -207,7 +223,9 @@
#define CONST_COMPLEX_1_0 1.0_ck8
#define size_of_PRECISION_complex size_of_double_complex_datatype
#define C_DATATYPE_KIND c_double
#endif
#endif
/* DOUBLE PRECISION */
#ifdef SINGLE_PRECISION
#define PRECISION single
#define PRECISION_STR 'single'
...
...
@@ -253,5 +271,7 @@
#define CONST_COMPLEX_1_0 1.0_ck4
#define size_of_PRECISION_complex size_of_single_complex_datatype
#define C_DATATYPE_KIND c_float
#endif
#endif
#endif
/* SINGLE PRECISION */
#endif
/* COMPLEXCASE */
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