Skip to content
Snippets Groups Projects
Commit 26ef8fed authored by Sebastian Eibl's avatar Sebastian Eibl
Browse files

fixed floating point exception

parent eb0d4e70
No related merge requests found
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "pe/communication/DynamicMarshalling.h" #include "pe/communication/DynamicMarshalling.h"
#include "blockforest/BlockDataHandling.h" #include "blockforest/BlockDataHandling.h"
#include "domain_decomposition/BlockStorage.h"
#include "core/Abort.h" #include "core/Abort.h"
namespace walberla{ namespace walberla{
...@@ -85,8 +86,7 @@ inline void StorageDataHandling<BodyTuple>::deserialize( IBlock * const block, c ...@@ -85,8 +86,7 @@ inline void StorageDataHandling<BodyTuple>::deserialize( IBlock * const block, c
typename RigidBodyCopyNotification::Parameters objparam; typename RigidBodyCopyNotification::Parameters objparam;
unmarshal( buffer, objparam ); unmarshal( buffer, objparam );
const auto inf = math::Limits<real_t>::inf(); BodyID bd = UnmarshalDynamically<BodyTuple>::execute(buffer, objparam.geomType_, block->getBlockStorage().getDomain(), block->getAABB());
BodyID bd = UnmarshalDynamically<BodyTuple>::execute(buffer, objparam.geomType_, math::AABB(-inf, -inf, -inf, inf, inf, inf), block->getAABB());
bd->setRemote( false ); bd->setRemote( false );
if ( !block->getAABB().contains( bd->getPosition()) ) if ( !block->getAABB().contains( bd->getPosition()) )
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment