Commit 81903670 authored by Quentin Khan's avatar Quentin Khan

Fix FGenericData to initialise its data on default construction

parent ed7b9153
......@@ -9,8 +9,8 @@ public:
using multipole_t = Multipole;
using local_expansion_t = LocalExpansion;
private:
multipole_t m_data;
local_expansion_t l_data;
multipole_t m_data {};
local_expansion_t l_data {};
public:
multipole_t* up = &m_data;
local_expansion_t* down = &l_data;
......@@ -22,7 +22,6 @@ public:
return up != nullptr;
}
multipole_t& getMultipoleData() noexcept {
return *up;
}
......@@ -37,6 +36,10 @@ public:
return *down;
}
/* TODO: Add getSavedSize if multipole and local_exp have it */
/* TODO: Add save/restore if multipole and local_exp have it */
///////////////////////////////////////////////////////
// to extend FAbstractSendable
......
Markdown is supported
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