We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe0b972 commit 46a0e69Copy full SHA for 46a0e69
1 file changed
include/openPMD/RecordComponent.tpp
@@ -142,6 +142,11 @@ inline void RecordComponent::loadChunk_impl(
142
std::shared_ptr<T_with_extent> data,
143
internal::LoadStoreConfigWithBuffer cfg)
144
{
145
+ if (cfg.memorySelection.has_value())
146
+ {
147
+ throw error::WrongAPIUsage(
148
+ "Unsupported: Memory selections in chunk loading.");
149
+ }
150
using T = std::remove_cv_t<std::remove_extent_t<T_with_extent>>;
151
Datatype dtype = determineDatatype(data);
152
if (dtype != getDatatype())
0 commit comments