← Back to team overview

dolfin team mailing list archive

Parameter.cpp

 

Anders,

I get problems to compile with a newly checked out version of DOLFIN.
There seems to be some issues with the uint casting in the new parameter
system? The compiler complains on the following in Parameter.cpp:

//-----------------------------------------------------------------------------
Parameter::operator uint() const
{
  return *value;
}
//-----------------------------------------------------------------------------


and there also seems to be some issues with the following in
ParameterValue.cpp:

//-----------------------------------------------------------------------------
ParameterValue::operator uint() const
{
  dolfin_error1("Unable to convert parameter of type %s to uint.",
		type().c_str());
  return 0;
}
//-----------------------------------------------------------------------------


/Johan



make[4]: Entering directory
`/afs/nada.kth.se/home/m/u1qo8adm/local/dolfin/src/kernel/parameter'
source='Parameter.cpp' object='Parameter.o' libtool=no \
depfile='.deps/Parameter.Po' tmpdepfile='.deps/Parameter.TPo' \
depmode=gcc3 /bin/sh ../../../depcomp \
g++ -DPACKAGE_NAME=\"dolfin\" -DPACKAGE_TARNAME=\"dolfin\"
-DPACKAGE_VERSION=\"0.5.11\" -DPACKAGE_STRING=\"dolfin\ 0.5.11\"
-DPACKAGE_BUGREPORT=\"dolfin@xxxxxxxxxx\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  -I. -I. -I../../../src/kernel/common
-I../../../src/kernel/fem -I../../../src/kernel/form
-I../../../src/kernel/function -I../../../src/kernel/io
-I../../../src/kernel/la -I../../../src/kernel/main
-I../../../src/kernel/math -I../../../src/kernel/mesh
-I../../../src/kernel/nls -I../../../src/kernel/ode
-I../../../src/kernel/quadrature -I../../../src/kernel/parameter
-I../../../src/kernel/log  -I/usr/local/petsc-2.3.0/
-I/usr/local/petsc-2.3.0//bmake/linux-gnu
-I/usr/local/petsc-2.3.0//include -I/usr/local/petsc-2.3.0/include/mpiuni
-I/usr/include -I/usr/include/libxml2    -DDEBUG=1 -g -O2 -Wall -Werror
-ansi -std=c++98 -c -o Parameter.o `test -f 'Parameter.cpp' || echo
'./'`Parameter.cpp
Parameter.cpp:134: syntax error before `(' token
Parameter.cpp:134: syntax error before `(' token
make[4]: *** [Parameter.o] Error 1
make[4]: Leaving directory
`/afs/nada.kth.se/home/m/u1qo8adm/local/dolfin/src/kernel/parameter'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/afs/nada.kth.se/home/m/u1qo8adm/local/dolfin/src/kernel/parameter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/afs/nada.kth.se/home/m/u1qo8adm/local/dolfin/src/kernel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/afs/nada.kth.se/home/m/u1qo8adm/local/dolfin/src'
make: *** [all-recursive] Error 1








Follow ups