Changeset 62f19a
- Timestamp:
- Sep 11, 2011, 4:17:52 PM (14 years ago)
- Children:
- c2f74f
- Parents:
- d0b958
- Files:
-
- 3 edited
-
configure.ac (modified) (3 diffs)
-
src/base/helper.hpp (modified) (1 diff)
-
src/base/index.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
rd0b958 r62f19a 30 30 AM_MISSING_PROG([DOXYGEN], [doxygen]) 31 31 32 # Get the C MPI compiler, because the following AC_FC_WRAPPERS macro works better if CC is from the same "family" as FC (which is MPI). 33 AX_PROG_CC_MPI(,,AC_MSG_FAILURE([The VMG solver requires an MPI C compiler.])) 34 32 35 # Do not even look for a non-MPI C++ compiler if MPICXX is set. 33 36 AX_PROG_CXX_MPI(,[AC_DEFINE([HAVE_MPI], [1], … … 41 44 AC_LANG_PUSH([Fortran]) 42 45 # Do not even look for a non-MPI Fortran compiler if MPIFC is set. 43 AX_PROG_FC_MPI(,,AC_MSG_FAILURE([The PP3MG solver requires an MPI Fortran compiler.]))46 AX_PROG_FC_MPI(,,AC_MSG_FAILURE([The VMG solver requires an MPI Fortran compiler.])) 44 47 45 48 # Find out how to call Fortran functions from C. … … 47 50 AC_LANG_POP([Fortran]) 48 51 52 # Check for the restrict keyword. 53 AC_C_RESTRICT 49 54 50 55 AM_OPTIONS_VTK -
src/base/helper.hpp
rd0b958 r62f19a 105 105 106 106 inline void MdM(int nn, vmg_float u, 107 vmg_float * __restrict__ tbl, vmg_float * __restrict__dtbl)107 vmg_float * restrict tbl, vmg_float * restrict dtbl) 108 108 { 109 109 int i, n, m; -
src/base/index.hpp
rd0b958 r62f19a 46 46 47 47 const Index Abs() {return Index(abs(i[0]), abs(i[1]), abs(i[2]));} 48 int Length() const {return sqrt( i[0]*i[0]+i[1]*i[1]+i[2]*i[2]);}48 int Length() const {return sqrt(double(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]));} 49 49 int Max() const {return std::max(std::max(i[0],i[1]),i[2]);} 50 50 int Min() const {return std::min(std::min(i[0],i[1]),i[2]);}
Note:
See TracChangeset
for help on using the changeset viewer.
