Hi Mark,
Unless what you want to debug actually needs DivCon, there's a
workaround... you can use the -nosanderidc flag for the
configure_amber.
Cheers,
--
Gustavo Seabra
Postdoctoral Associate
Quantum Theory Project - University of Florida
Gainesville - Florida - USA
On Thu, Sep 11, 2008 at 4:40 PM, Mark Williamson <mjw.sdsc.edu> wrote:
> Dear all,
>
> I'm building AMBER11 CVS in debug mode in an attempt to grok it and test
> some changes out. Having created a config_amber.h using the following
> command:
>
> ./configure_amber -nobintraj gfortran
>
> and then building in $AMBERHOME/src/sander with:
> make -e AMBERBUILDFLAGS="-DDEBUG -g"
>
> I obtain the following compile error:
>
> gfortran -c -O0 -fno-range-check -fno-second-underscore -DDEBUG -g
> -ffree-form -I../../sander -I../src/include -DHAS_LAPACK -DQMMM -o
> ../obj/dcartcl.o ../src/qmmm/dcartcl.F90
> ../src/qmmm/dcartcl.F90:67.13:
>
> LOGICAL 1, FORCE, MAKEP, ANADER, LARGE
> 1
> Error: Syntax error in data declaration at (1)
> ../src/qmmm/dcartcl.F90:69.33:
>
> SAVE CHNGE, CHNGE2, ANADER, 1, FORCE,large
> 1
> Error: Syntax error in SAVE statement at (1)
> make[2]: *** [../obj/dcartcl.o] Error 1
> make[2]: Leaving directory `/home/mjw/code/AMBER/CVS/amber11/src/dcqtp/mod'
> make[1]: *** [libdivcon.a] Error 2
> make[1]: Leaving directory `/home/mjw/code/AMBER/CVS/amber11/src/dcqtp'
> make: *** [divcon] Error 2
>
>
> I think the DEBUG macro that specified via the make command is stepping on
> this logical DEBUG variable and setting its name to "1". Would it be
> possible to rename this variable to something else like DEBUGQMMM in all
> instances of its use in this section of the code:
>
> $ grep DEBUG ../dcqtp/src/qmmm/*
> ../dcqtp/src/qmmm/dcartcl.F90: LOGICAL DEBUG, FORCE, MAKEP, ANADER,
> LARGE
> ../dcqtp/src/qmmm/dcartcl.F90: SAVE CHNGE, CHNGE2, ANADER, DEBUG,
> FORCE,large
> ../dcqtp/src/qmmm/dcartcl.F90:! DEBUG = (INDEX(KEYWRD,'DCART') .NE.
> 0)
>
>
> regards,
>
>
> Mark
>
Received on Fri Sep 12 2008 - 03:08:04 PDT