Problem while installing NAMD

From: Karan Maroo (karanmaroo_at_gmail.com)
Date: Thu Jul 17 2008 - 04:06:17 CDT

Hi,

Am trying to install NAMD using Cygwin and VC++ compiler. However, I get the
following errors while doing so:

"ComputePme.C
src/ComputePme.C(605) : error C2664: 'rfftwnd_create_plan_specific' : cannot
con
vert parameter 5 from 'float *' to 'fftw_real *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-
style cast or function-style cast
src/ComputePme.C(625) : error C2664: 'rfftwnd_create_plan_specific' : cannot
con
vert parameter 5 from 'float *' to 'fftw_real *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-
style cast or function-style cast
src/ComputePme.C(713) : error C2664: 'rfftwnd_real_to_complex' : cannot
convert
parameter 3 from 'float *' to 'fftw_real *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-
style cast or function-style cast
Make: *** [obj/ComputePme.o] Error 2"

The corresponding lines of ComputePme.C are:

forward_plan_yz = rfftwnd_create_plan_specific(2, n+1, FFTW_REAL_TO_COMPLEX,
    ( simParams->FFTWEstimate ? FFTW_ESTIMATE : FFTW_MEASURE ) //line number
605
    | FFTW_IN_PLACE | FFTW_USE_WISDOM, qgrid, 1, 0, 0);
  }

backward_plan_yz = rfftwnd_create_plan_specific(2, n+1,
FFTW_COMPLEX_TO_REAL,
    ( simParams->FFTWEstimate ? FFTW_ESTIMATE : FFTW_MEASURE )
    | FFTW_IN_PLACE | FFTW_USE_WISDOM, qgrid, 1, 0, 0); //625 line
  }

for ( int g=0; g<numGrids; ++g ) {
    rfftwnd_real_to_complex(forward_plan_yz, localInfo[myGridPe].nx,
    qgrid + qgrid_size * g, 1, myGrid.dim2 * myGrid.dim3, 0, 0, 0); //713
  }

Please help me with the changes I'd have to make!
Thanks.

-- 
Karan Maroo
http://karanatiiit.wordpress.com

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:48:04 CST