compilation error in H1D

3 views
Skip to first unread message

Pavel Solin

unread,
Mar 20, 2011, 1:28:00 AM3/20/11
to hermes1d
Hi,
could please someone have a look at this error?
This happens in the new branch weakform.
Pavel

[ 15%] Building CXX object
hermes1d/tests/adapt/adapt-exact-quadr-H1/CMakeFiles/test-adapt-exact-quadr-H1.dir/main.cpp.o
/home/pavel/repos/hermes/hermes1d/tests/adapt/adapt-exact-quadr-H1/main.cpp:42:
error: no matching function for call to ‘Hermes::vector<std::pair<int,
double>*>::vector(BCSpec*)’
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:44:
note: candidates are: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&, const T&, const T&, const T&, const T&, const T&,
const T&) [with T = std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:42:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&, const T&, const T&, const T&, const T&, const T&)
[with T = std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:40:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&, const T&, const T&, const T&, const T&) [with T =
std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:38:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&, const T&, const T&, const T&) [with T =
std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:36:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&, const T&, const T&) [with T = std::pair<int,
double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:34:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&, const T&) [with T = std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:32:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&) [with T = std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:30:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&) [with T = std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:28:
note: Hermes::vector<T>::vector(const T&, const T&)
[with T = std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:26:
note: Hermes::vector<T>::vector() [with T =
std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:23:
note: Hermes::vector<std::pair<int,
double>*>::vector(const Hermes::vector<std::pair<int, double>*>&)
/home/pavel/repos/hermes/hermes1d/tests/adapt/adapt-exact-quadr-H1/main.cpp:43:
error: no matching function for call to ‘Hermes::vector<std::pair<int,
double>*>::vector(BCSpec*)’
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:44:
note: candidates are: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&, const T&, const T&, const T&, const T&, const T&,
const T&) [with T = std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:42:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&, const T&, const T&, const T&, const T&, const T&)
[with T = std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:40:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&, const T&, const T&, const T&, const T&) [with T =
std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:38:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&, const T&, const T&, const T&) [with T =
std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:36:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&, const T&, const T&) [with T = std::pair<int,
double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:34:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&, const T&) [with T = std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:32:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&, const T&) [with T = std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:30:
note: Hermes::vector<T>::vector(const T&, const T&,
const T&) [with T = std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:28:
note: Hermes::vector<T>::vector(const T&, const T&)
[with T = std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:26:
note: Hermes::vector<T>::vector() [with T =
std::pair<int, double>*]
/home/pavel/repos/hermes/hermes1d/src/../../hermes_common/vector.h:23:
note: Hermes::vector<std::pair<int,
double>*>::vector(const Hermes::vector<std::pair<int, double>*>&)
make[2]: *** [hermes1d/tests/adapt/adapt-exact-quadr-H1/CMakeFiles/test-adapt-exact-quadr-H1.dir/main.cpp.o]
Error 1
make[1]: *** [hermes1d/tests/adapt/adapt-exact-quadr-H1/CMakeFiles/test-adapt-exact-quadr-H1.dir/all]
Error 2
make: *** [all] Error 2


--
Pavel Solin
University of Nevada, Reno
Home page: http://hpfem.org/~pavel
FEMTEC 2011: http://hpfem.org/events/femtec-2011/
Hermes: http://hpfem.org/
FEMhub: http://femhub.org/

Lukas Korous

unread,
Mar 20, 2011, 8:06:56 AM3/20/11
to herm...@googlegroups.com, Pavel Solin
Hi,

this is caused by us removing the one element constructor of
Hermes::vector (because it was causing very strange behavior, as we
observed with Pavel Karban). So we need to write additional method
variants (in this case variants of the Space constructor) for one
element, and use it (in the examples).

I have written it on my to-do list, but if anybody wants to do it
sooner, it is really simple.

Lukas

On 3/20/2011 6:28 AM, Pavel Solin wrote:
> Hi,
> could please someone have a look at this error?
> This happens in the new branch weakform.
> Pavel
>
> [ 15%] Building CXX object
> hermes1d/tests/adapt/adapt-exact-quadr-H1/CMakeFiles/test-adapt-exact-quadr-H1.dir/main.cpp.o
> /home/pavel/repos/hermes/hermes1d/tests/adapt/adapt-exact-quadr-H1/main.cpp:42:

> error: no matching function for call to �Hermes::vector<std::pair<int,
> double>*>::vector(BCSpec*)�

> error: no matching function for call to �Hermes::vector<std::pair<int,
> double>*>::vector(BCSpec*)�

Lukas Korous

unread,
Mar 20, 2011, 3:48:33 PM3/20/11
to herm...@googlegroups.com, Pavel Solin
Hi,

fixed. With MSVC I only have problems compiling one neutronics example.

Lukas

Reply all
Reply to author
Forward
0 new messages