Hello Matthias, your workaround for simpleobseval.h worked fine and compilation of examples/tests/applications has made further progress. Now I've found the following error message: "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b3_20101021/alps/src/alps/model/operatordescriptor.h", line 99.40: 1540-0215 (S) The wrong number of arguments have been specified for "alps::SiteBasisDescriptor<short>::get_parameters(bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b3_20101021/alps/src/alps/model/operatordescriptor.h", line 95.1: 1540-0700
This occurs both in examples (printnumeric) and in applications (qmc), as reported below:
(I) The previous message was produced while processing "alps::OperatorDescriptor<short>::apply<alps::site_state<short>,std::complex<double>
(site_state<short>, const SiteBasisDescriptor<short> &, const
ParameterEvaluator<std::complex<double> > &, bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b3_20101021/alps/src/alps/model/sitebasisdescriptor.h", line 114.20: 1540-0700 (I) The previous message was produced while processing "alps::SiteBasisDescriptor<short>::apply<alps::site_state<short>,std::complex<double>
(const string &, site_state<short>, const
ParameterEvaluator<std::complex<double> > &, bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b3_20101021/alps/src/alps/model/siteterm.h", line 142.44: 1540-0700 (I) The previous message was produced while processing "alps::SiteOperatorEvaluator<short,std::complex<double>,alps::site_state<short>
::partial_evaluate_function(const string &, const
Expression<std::complex<double> > &, bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b3_20101021/alps/src/alps/model/siteterm.h", line 62.7: 1540-0700 (I) The previous message was produced while processing "class alps::SiteOperatorEvaluator<short,std::complex<double>,alps::site_state<short>
".
make[2]: *** [example/model/CMakeFiles/print_numeric.dir/print_numeric.cpp.o] Error 1 make[1]: *** [example/model/CMakeFiles/print_numeric.dir/all] Error 2 make: *** [all] Error 2
The previous message was produced while processing "alps::OperatorDescriptor<short>::apply<alps::site_state<short>,std::complex<double>
(site_state<short>, const SiteBasisDescriptor<short> &, const
ParameterEvaluator<std::complex<double> > &, bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b4-r4959-src-with-boost/alps/src/alps/model/sitebasisdescriptor.h", line 114.20: 1540-0700 (I) The previous message was produced while processing "alps::SiteBasisDescriptor<short>::apply<alps::site_state<short>,std::complex<double>
(const string &, site_state<short>, const
ParameterEvaluator<std::complex<double> > &, bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b4-r4959-src-with-boost/alps/src/alps/model/siteterm.h", line 142.44: 1540-0700 (I) The previous message was produced while processing "alps::SiteOperatorEvaluator<short,std::complex<double>,alps::site_state<short>
::partial_evaluate_function(const string &, const
Expression<std::complex<double> > &, bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b4-r4959-src-with-boost/alps/src/alps/model/siteterm.h", line 62.7: 1540-0700 (I) The previous message was produced while processing "class alps::SiteOperatorEvaluator<short,std::complex<double>,alps::site_state<short>
".
make[2]: *** [applications/qmc/checksign/CMakeFiles/checksign.dir/checksign.C.o] Error 1 make[1]: *** [applications/qmc/checksign/CMakeFiles/checksign.dir/all] Error 2 make: *** [all] Error 2
It also occurs in my code, so I hope you can find a fix also for this, please. Thank you in advance for your help.
Best
Jessica
Hi Jessica,
This is yet another compiler bug since the function clearly has a default parameter. Please replace the call to get_parameters() by get_parameters(false) and try again.
Matthias
On Nov 2, 2010, at 10:38 AM, jessica.alfonsi@unipd.it wrote:
Hello Matthias, your workaround for simpleobseval.h worked fine and compilation of examples/tests/applications has made further progress. Now I've found the following error message: "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b3_20101021/alps/src/alps/model/operatordescriptor.h", line 99.40: 1540-0215 (S) The wrong number of arguments have been specified for "alps::SiteBasisDescriptor<short>::get_parameters(bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b3_20101021/alps/src/alps/model/operatordescriptor.h", line 95.1: 1540-0700
This occurs both in examples (printnumeric) and in applications (qmc), as reported below:
(I) The previous message was produced while processing "alps::OperatorDescriptor<short>::apply<alps::site_state<short>,std::complex<double>
(site_state<short>, const SiteBasisDescriptor<short> &, const
ParameterEvaluator<std::complex<double> > &, bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b3_20101021/alps/src/alps/model/sitebasisdescriptor.h", line 114.20: 1540-0700 (I) The previous message was produced while processing "alps::SiteBasisDescriptor<short>::apply<alps::site_state<short>,std::complex<double>
(const string &, site_state<short>, const
ParameterEvaluator<std::complex<double> > &, bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b3_20101021/alps/src/alps/model/siteterm.h", line 142.44: 1540-0700 (I) The previous message was produced while processing "alps::SiteOperatorEvaluator<short,std::complex<double>,alps::site_state<short>
::partial_evaluate_function(const string &, const
Expression<std::complex<double> > &, bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b3_20101021/alps/src/alps/model/siteterm.h", line 62.7: 1540-0700 (I) The previous message was produced while processing "class alps::SiteOperatorEvaluator<short,std::complex<double>,alps::site_state<short>
".
make[2]: *** [example/model/CMakeFiles/print_numeric.dir/print_numeric.cpp.o] Error 1 make[1]: *** [example/model/CMakeFiles/print_numeric.dir/all] Error 2 make: *** [all] Error 2
The previous message was produced while processing "alps::OperatorDescriptor<short>::apply<alps::site_state<short>,std::complex<double>
(site_state<short>, const SiteBasisDescriptor<short> &, const
ParameterEvaluator<std::complex<double> > &, bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b4-r4959-src-with-boost/alps/src/alps/model/sitebasisdescriptor.h", line 114.20: 1540-0700 (I) The previous message was produced while processing "alps::SiteBasisDescriptor<short>::apply<alps::site_state<short>,std::complex<double>
(const string &, site_state<short>, const
ParameterEvaluator<std::complex<double> > &, bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b4-r4959-src-with-boost/alps/src/alps/model/siteterm.h", line 142.44: 1540-0700 (I) The previous message was produced while processing "alps::SiteOperatorEvaluator<short,std::complex<double>,alps::site_state<short>
::partial_evaluate_function(const string &, const
Expression<std::complex<double> > &, bool) const". "/gpfs/scratch/userexternal/jalfonsi/alps-2.0.0b4-r4959-src-with-boost/alps/src/alps/model/siteterm.h", line 62.7: 1540-0700 (I) The previous message was produced while processing "class alps::SiteOperatorEvaluator<short,std::complex<double>,alps::site_state<short>
".
make[2]: *** [applications/qmc/checksign/CMakeFiles/checksign.dir/checksign.C.o] Error 1 make[1]: *** [applications/qmc/checksign/CMakeFiles/checksign.dir/all] Error 2 make: *** [all] Error 2
It also occurs in my code, so I hope you can find a fix also for this, please. Thank you in advance for your help.
Best
Jessica
comp-phys-alps-users@lists.phys.ethz.ch