Changeset 62f19a


Ignore:
Timestamp:
Sep 11, 2011, 4:17:52 PM (14 years ago)
Author:
Michael Hofmann <michael.hofmann@…>
Children:
c2f74f
Parents:
d0b958
Message:

vmg: minor fixes

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@942 5161e1c8-67bf-11de-9fd5-51895aff932f

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rd0b958 r62f19a  
    3030AM_MISSING_PROG([DOXYGEN], [doxygen])
    3131
     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).
     33AX_PROG_CC_MPI(,,AC_MSG_FAILURE([The VMG solver requires an MPI C compiler.]))
     34
    3235# Do not even look for a non-MPI C++ compiler if MPICXX is set.
    3336AX_PROG_CXX_MPI(,[AC_DEFINE([HAVE_MPI], [1],
     
    4144AC_LANG_PUSH([Fortran])
    4245# 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.]))
     46AX_PROG_FC_MPI(,,AC_MSG_FAILURE([The VMG solver requires an MPI Fortran compiler.]))
    4447
    4548# Find out how to call Fortran functions from C.
     
    4750AC_LANG_POP([Fortran])
    4851
     52# Check for the restrict keyword.
     53AC_C_RESTRICT
    4954
    5055AM_OPTIONS_VTK
  • src/base/helper.hpp

    rd0b958 r62f19a  
    105105
    106106  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)
    108108  {
    109109    int i, n, m;
  • src/base/index.hpp

    rd0b958 r62f19a  
    4646
    4747  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]));}
    4949  int Max() const {return std::max(std::max(i[0],i[1]),i[2]);}
    5050  int Min() const {return std::min(std::min(i[0],i[1]),i[2]);}
Note: See TracChangeset for help on using the changeset viewer.