From: Murphy, J. T. <jtm...@an...> - 2011-12-19 16:26:00
|
Kashif, Regarding question 2, if you really need to just send a piece of data from one process to another, you can, of course, do that with your own MPI code or using a boost::mpi call. But I am still hesitant about this, because my belief is that this in some way will be outside the agent semantics of your simulation. Within Repast HPC the best way is to give the information that is needed to one or more agents and then use the agent synchronization routines. This may be more difficult if you are using the HPC Relogo idiom and you need to spread the information to all the processes. Regarding question 1, if you need to serialize an std::map (presumably because there is a map object in your agents?), this error often be avoided by adding #include <boost/serialization/map.hpp> to your source file. Do you already have that in the header for your code? Best, John -- John T. Murphy Computational Postdoctoral Fellow Decision and Information Sciences and Argonne Leadership Computing Facility Argonne National Laboratory jtm...@an... From: Kashif Zia <ka...@pe...<mailto:ka...@pe...>> Date: Mon, 19 Dec 2011 10:14:44 -0600 To: "Murphy, John T." <jtm...@an...<mailto:jtm...@an...>>, "rep...@li...<mailto:rep...@li...>" <rep...@li...<mailto:rep...@li...>> Subject: RE: Repast HPC objects access John, 2. I just need to share count agents information between the processes. 1. The error message is like: 1>------ Build started: Project: CityEvacSimArtSpace, Configuration: Debug Win32 ------ 1> FollowingObserver.cpp 1>c:\boost\include\boost-1_44\boost\serialization\access.hpp(118): error C2039: 'serialize' : is not a member of 'std::map<_Kty,_Ty>' 1> with 1> [ 1> _Kty=int, 1> _Ty=double 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\serialization.hpp(70) : see reference to function template instantiation 'void boost::serialization::access::serialize<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,double> 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\serialization.hpp(129) : see reference to function template instantiation 'void boost::serialization::serialize<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,double> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(152) : see reference to function template instantiation 'void boost::serialization::serialize_adl<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,double> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(144) : while compiling class template member function 'void boost::archive::detail::oserializer<Archive,T>::save_object_data(boost::archive::detail::basic_oarchive &,const void *) const' 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,double> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(258) : see reference to class template instantiation 'boost::archive::detail::oserializer<Archive,T>' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,double> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(308) : see reference to function template instantiation 'void boost::archive::detail::save_non_pointer_type<Archive>::save_standard::invoke<T>(Archive &,const T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,double> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(525) : see reference to function template instantiation 'void boost::archive::detail::save_non_pointer_type<Archive>::invoke<const T>(Archive &,const T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,double> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\common_oarchive.hpp(69) : see reference to function template instantiation 'void boost::archive::save<Archive,T>(Archive &,T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,double> 1> ] 1> c:\boost\include\boost-1_44\boost\mpi\packed_oarchive.hpp(91) : see reference to function template instantiation 'void boost::archive::detail::common_oarchive<Archive>::save_override<const T>(T &,int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,double> 1> ] 1> c:\boost\include\boost-1_44\boost\mpi\packed_oarchive.hpp(106) : see reference to function template instantiation 'void boost::mpi::packed_oarchive::save_override<T>(const T &,int,boost::mpl::false_)' being compiled 1> with 1> [ 1> T=std::map<int,double> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\interface_oarchive.hpp(63) : see reference to function template instantiation 'void boost::mpi::packed_oarchive::save_override<const T>(const T &,int)' being compiled 1> with 1> [ 1> T=std::map<int,double> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\interface_oarchive.hpp(71) : see reference to function template instantiation 'Archive &boost::archive::detail::interface_oarchive<Archive>::operator <<<const T>(T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,double> 1> ] 1> c:\dokumente und einstellungen\kashif\eigene dateien\visual studio 2010\projects\repasthpc_solution\repasthpc\cityevacsimartspace\agentpackage.h(29) : see reference to function template instantiation 'Archive &boost::archive::detail::interface_oarchive<Archive>::operator &<std::map<_Kty,_Ty>>(T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> _Kty=int, 1> _Ty=double, 1> T=std::map<int,double> 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\access.hpp(118) : see reference to function template instantiation 'void AgentPackage::serialize<Archive>(Archive &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\serialization.hpp(70) : see reference to function template instantiation 'void boost::serialization::access::serialize<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\serialization.hpp(129) : see reference to function template instantiation 'void boost::serialization::serialize<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(152) : see reference to function template instantiation 'void boost::serialization::serialize_adl<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(144) : while compiling class template member function 'void boost::archive::detail::oserializer<Archive,T>::save_object_data(boost::archive::detail::basic_oarchive &,const void *) const' 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(258) : see reference to class template instantiation 'boost::archive::detail::oserializer<Archive,T>' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(308) : see reference to function template instantiation 'void boost::archive::detail::save_non_pointer_type<Archive>::save_standard::invoke<T>(Archive &,const T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(525) : see reference to function template instantiation 'void boost::archive::detail::save_non_pointer_type<Archive>::invoke<const T>(Archive &,const T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\common_oarchive.hpp(69) : see reference to function template instantiation 'void boost::archive::save<Archive,T>(Archive &,T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\mpi\packed_oarchive.hpp(91) : see reference to function template instantiation 'void boost::archive::detail::common_oarchive<Archive>::save_override<const T>(T &,int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\mpi\packed_oarchive.hpp(106) : see reference to function template instantiation 'void boost::mpi::packed_oarchive::save_override<T>(const T &,int,boost::mpl::false_)' being compiled 1> with 1> [ 1> T=const AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\interface_oarchive.hpp(63) : see reference to function template instantiation 'void boost::mpi::packed_oarchive::save_override<const T>(const T &,int)' being compiled 1> with 1> [ 1> T=const AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\nvp.hpp(79) : see reference to function template instantiation 'Archive &boost::archive::detail::interface_oarchive<Archive>::operator <<<T>(T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\access.hpp(93) : see reference to function template instantiation 'void boost::serialization::nvp<T>::save<Archive>(Archivex &,const unsigned int) const' being compiled 1> with 1> [ 1> T=const AgentPackage, 1> Archive=boost::mpi::packed_oarchive, 1> Archivex=boost::mpi::packed_oarchive 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\split_member.hpp(43) : see reference to function template instantiation 'void boost::serialization::access::member_save<Archive,const T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=boost::serialization::nvp<const AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\split_member.hpp(42) : while compiling class template member function 'void boost::serialization::detail::member_saver<Archive,T>::invoke(Archive &,const T &,const unsigned int)' 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=boost::serialization::nvp<const AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\split_member.hpp(69) : see reference to class template instantiation 'boost::serialization::detail::member_saver<Archive,T>' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=boost::serialization::nvp<const AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\nvp.hpp(89) : see reference to function template instantiation 'void boost::serialization::split_member<Archive,boost::serialization::nvp<T>>(Archive &,boost::serialization::nvp<T> &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\access.hpp(118) : see reference to function template instantiation 'void boost::serialization::nvp<T>::serialize<Archive>(Archive &,const unsigned int)' being compiled 1> with 1> [ 1> T=const AgentPackage, 1> Archive=boost::mpi::packed_oarchive 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\serialization.hpp(70) : see reference to function template instantiation 'void boost::serialization::access::serialize<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const boost::serialization::nvp<const AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\serialization.hpp(129) : see reference to function template instantiation 'void boost::serialization::serialize<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const boost::serialization::nvp<const AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(245) : see reference to function template instantiation 'void boost::serialization::serialize_adl<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const boost::serialization::nvp<const AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(308) : see reference to function template instantiation 'void boost::archive::detail::save_non_pointer_type<Archive>::save_only::invoke<T>(Archive &,const T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const boost::serialization::nvp<const AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(525) : see reference to function template instantiation 'void boost::archive::detail::save_non_pointer_type<Archive>::invoke<const T>(Archive &,const T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const boost::serialization::nvp<const AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\common_oarchive.hpp(69) : see reference to function template instantiation 'void boost::archive::save<Archive,T>(Archive &,T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const boost::serialization::nvp<const AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\mpi\packed_oarchive.hpp(91) : see reference to function template instantiation 'void boost::archive::detail::common_oarchive<Archive>::save_override<const T>(T &,int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const boost::serialization::nvp<const AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\mpi\packed_oarchive.hpp(106) : see reference to function template instantiation 'void boost::mpi::packed_oarchive::save_override<T>(const T &,int,boost::mpl::false_)' being compiled 1> with 1> [ 1> T=const boost::serialization::nvp<const AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\interface_oarchive.hpp(63) : see reference to function template instantiation 'void boost::mpi::packed_oarchive::save_override<const T>(const T &,int)' being compiled 1> with 1> [ 1> T=const boost::serialization::nvp<const AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\collections_save_imp.hpp(64) : see reference to function template instantiation 'Archive &boost::archive::detail::interface_oarchive<Archive>::operator <<<const boost::serialization::nvp<T>>(const boost::serialization::nvp<T> &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=const AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\vector.hpp(55) : see reference to function template instantiation 'void boost::serialization::stl::save_collection<Archive,std::vector<_Ty>>(Archive &,const Container &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> _Ty=AgentPackage, 1> Container=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\vector.hpp(120) : see reference to function template instantiation 'void boost::serialization::save<Archive,AgentPackage,std::allocator<_Ty>>(Archive &,const std::vector<_Ty> &,const unsigned int,boost::mpl::false_)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> _Ty=AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\split_free.hpp(45) : see reference to function template instantiation 'void boost::serialization::save<Archive,AgentPackage,std::allocator<_Ty>>(Archive &,const std::vector<_Ty> &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> _Ty=AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\split_free.hpp(41) : while compiling class template member function 'void boost::serialization::free_saver<Archive,T>::invoke(Archive &,const T &,const unsigned int)' 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\split_free.hpp(74) : see reference to class template instantiation 'boost::serialization::free_saver<Archive,T>' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\vector.hpp(151) : see reference to function template instantiation 'void boost::serialization::split_free<Archive,std::vector<_Ty>>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> _Ty=AgentPackage, 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\serialization.hpp(129) : see reference to function template instantiation 'void boost::serialization::serialize<Archive,AgentPackage,std::allocator<_Ty>>(Archive &,std::vector<_Ty> &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> _Ty=AgentPackage 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(152) : see reference to function template instantiation 'void boost::serialization::serialize_adl<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(144) : while compiling class template member function 'void boost::archive::detail::oserializer<Archive,T>::save_object_data(boost::archive::detail::basic_oarchive &,const void *) const' 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(258) : see reference to class template instantiation 'boost::archive::detail::oserializer<Archive,T>' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(308) : see reference to function template instantiation 'void boost::archive::detail::save_non_pointer_type<Archive>::save_standard::invoke<T>(Archive &,const T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(525) : see reference to function template instantiation 'void boost::archive::detail::save_non_pointer_type<Archive>::invoke<const T>(Archive &,const T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\common_oarchive.hpp(69) : see reference to function template instantiation 'void boost::archive::save<Archive,T>(Archive &,T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\mpi\packed_oarchive.hpp(91) : see reference to function template instantiation 'void boost::archive::detail::common_oarchive<Archive>::save_override<const T>(T &,int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\mpi\packed_oarchive.hpp(106) : see reference to function template instantiation 'void boost::mpi::packed_oarchive::save_override<T>(const T &,int,boost::mpl::false_)' being compiled 1> with 1> [ 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\interface_oarchive.hpp(63) : see reference to function template instantiation 'void boost::mpi::packed_oarchive::save_override<const T>(const T &,int)' being compiled 1> with 1> [ 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\mpi\communicator.hpp(1272) : see reference to function template instantiation 'Archive &boost::archive::detail::interface_oarchive<Archive>::operator <<<const T>(T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::vector<AgentPackage> 1> ] 1> c:\boost\include\boost-1_44\boost\mpi\communicator.hpp(1283) : see reference to function template instantiation 'boost::mpi::request boost::mpi::communicator::isend_impl<T>(int,int,const T &,boost::mpl::false_) const' being compiled 1> with 1> [ 1> T=std::vector<AgentPackage> 1> ] 1> c:\dokumente und einstellungen\kashif\eigene dateien\visual studio 2010\projects\repasthpc_solution\repasthpc\src\repast_hpc\repastprocess.h(319) : see reference to function template instantiation 'boost::mpi::request boost::mpi::communicator::isend<std::vector<_Ty>>(int,int,const T &) const' being compiled 1> with 1> [ 1> _Ty=AgentPackage, 1> T=std::vector<AgentPackage> 1> ] 1> c:\dokumente und einstellungen\kashif\eigene dateien\visual studio 2010\projects\repasthpc_solution\repasthpc\src\relogo\observer.h(888) : see reference to function template instantiation 'void repast::RepastProcess::syncAgentStatus<repast::relogo::RelogoAgent,TurtleContent,Provider,AgentCreator>(repast::SharedContext<T> &,Provider &,AgentCreator &)' being compiled 1> with 1> [ 1> TurtleContent=AgentPackage, 1> Provider=FollowingObserver, 1> AgentCreator=FollowingObserver, 1> T=repast::relogo::RelogoAgent 1> ] 1> c:\dokumente und einstellungen\kashif\eigene dateien\visual studio 2010\projects\repasthpc_solution\repasthpc\cityevacsimartspace\followingobserver.cpp(204) : see reference to function template instantiation 'void repast::relogo::Observer::synchronizeTurtleStatus<AgentPackage,FollowingObserver,FollowingObserver>(Provider &,AgentCreator &)' being compiled 1> with 1> [ 1> Provider=FollowingObserver, 1> AgentCreator=FollowingObserver 1> ] 1>c:\boost\include\boost-1_44\boost\serialization\access.hpp(118): error C2039: 'serialize' : is not a member of 'std::map<_Kty,_Ty>' 1> with 1> [ 1> _Kty=int, 1> _Ty=int 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\serialization.hpp(70) : see reference to function template instantiation 'void boost::serialization::access::serialize<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,int> 1> ] 1> c:\boost\include\boost-1_44\boost\serialization\serialization.hpp(129) : see reference to function template instantiation 'void boost::serialization::serialize<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,int> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(152) : see reference to function template instantiation 'void boost::serialization::serialize_adl<Archive,T>(Archive &,T &,const unsigned int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,int> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(144) : while compiling class template member function 'void boost::archive::detail::oserializer<Archive,T>::save_object_data(boost::archive::detail::basic_oarchive &,const void *) const' 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,int> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(258) : see reference to class template instantiation 'boost::archive::detail::oserializer<Archive,T>' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,int> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(308) : see reference to function template instantiation 'void boost::archive::detail::save_non_pointer_type<Archive>::save_standard::invoke<T>(Archive &,const T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,int> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\oserializer.hpp(525) : see reference to function template instantiation 'void boost::archive::detail::save_non_pointer_type<Archive>::invoke<const T>(Archive &,const T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,int> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\common_oarchive.hpp(69) : see reference to function template instantiation 'void boost::archive::save<Archive,T>(Archive &,T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,int> 1> ] 1> c:\boost\include\boost-1_44\boost\mpi\packed_oarchive.hpp(91) : see reference to function template instantiation 'void boost::archive::detail::common_oarchive<Archive>::save_override<const T>(T &,int)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,int> 1> ] 1> c:\boost\include\boost-1_44\boost\mpi\packed_oarchive.hpp(106) : see reference to function template instantiation 'void boost::mpi::packed_oarchive::save_override<T>(const T &,int,boost::mpl::false_)' being compiled 1> with 1> [ 1> T=std::map<int,int> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\interface_oarchive.hpp(63) : see reference to function template instantiation 'void boost::mpi::packed_oarchive::save_override<const T>(const T &,int)' being compiled 1> with 1> [ 1> T=std::map<int,int> 1> ] 1> c:\boost\include\boost-1_44\boost\archive\detail\interface_oarchive.hpp(71) : see reference to function template instantiation 'Archive &boost::archive::detail::interface_oarchive<Archive>::operator <<<const T>(T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> T=std::map<int,int> 1> ] 1> c:\dokumente und einstellungen\kashif\eigene dateien\visual studio 2010\projects\repasthpc_solution\repasthpc\cityevacsimartspace\agentpackage.h(30) : see reference to function template instantiation 'Archive &boost::archive::detail::interface_oarchive<Archive>::operator &<std::map<_Kty,_Ty>>(T &)' being compiled 1> with 1> [ 1> Archive=boost::mpi::packed_oarchive, 1> _Kty=int, 1> _Ty=int, 1> T=std::map<int,int> 1> ] ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== I do not know whether it (above error) would be useful. But it would be a nightmare if I have to synchronize without map. Best --- Kashif Zia PhD Candidate Institut für Pervasive Computing, Johannes Kepler Universität Linz, Altenberger Straße 69, A-4040 Linz Room: P105, Phone: +43-732-2468-9673, Fax: +43-732-2468-8426 E-Mail: ka...@pe...<mailto:ka...@pe...> -----Original Message----- From: Murphy, John T. [mailto:jtm...@an...] Sent: Monday, December 19, 2011 5:00 PM To: Kashif Zia; rep...@li...<mailto:rep...@li...> Subject: Re: Repast HPC objects access Kashif, Could you be more specific about at what point in the code you are receiving the map serialization error? What are you trying to compile? Regarding the second question, the simplest answer is that to exchange the information using Repast HPC's native functions, you may need to wrap your data into an agent of some kind. What data are you trying to exchange? Best, John -- John T. Murphy Computational Postdoctoral Fellow Decision and Information Sciences and Argonne Leadership Computing Facility Argonne National Laboratory jtm...@an...<mailto:jtm...@an...> From: Kashif Zia <ka...@pe...<mailto:ka...@pe...><mailto:ka...@pe...>> Date: Mon, 19 Dec 2011 09:40:43 -0600 To: "Murphy, John T." <jtm...@an...<mailto:jtm...@an...><mailto:jtm...@an...>>, "rep...@li...<mailto:rep...@li...><mailto:rep...@li...>" <rep...@li...<mailto:rep...@li...><mailto:rep...@li...>> Subject: Repast HPC objects access Dear John and All I have two questions: 1. Does repast hpc / boost support std::map serialization. The error is: Error 1 error C2039: 'serialize' : is not a member of 'std::map<_Kty,_Ty>' c:\boost\include\boost-1_44\boost\serialization\access.hpp 118. If that is not possible, is there any other way around. 2. Is there any way that data (variable values) can be shared between processes in each iteration? Best Regards. --- Kashif Zia PhD Candidate Institut für Pervasive Computing, Johannes Kepler Universität Linz, Altenberger Straße 69, A-4040 Linz Room: P105, Phone: +43-732-2468-9673, Fax: +43-732-2468-8426 E-Mail: ka...@pe...<mailto:ka...@pe...><mailto:ka...@pe...> |