From 44844ee76e44a8d2e6647823d467b0e2d558b1de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domokos=20S=C3=A1rm=C3=A1ny?= Date: Thu, 21 Nov 2024 18:05:53 +0000 Subject: [PATCH] Fix formatting --- src/multio/api/c/multio_capi.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/multio/api/c/multio_capi.cc b/src/multio/api/c/multio_capi.cc index b3577286..a434d459 100644 --- a/src/multio/api/c/multio_capi.cc +++ b/src/multio/api/c/multio_capi.cc @@ -461,10 +461,10 @@ int multio_delete_handle(multio_handle_t* mio) { multio::message::Metadata md; md.set("flushKind", "end-of-simulation"); - - mio->dispatch(std::move(md), eckit::Buffer{0}, Message::Tag::Flush); - - // TODO add sleep + + mio->dispatch(std::move(md), eckit::Buffer{0}, Message::Tag::Flush); + + // TODO add sleep delete mio; }); #else @@ -505,13 +505,13 @@ int multio_close_connections(multio_handle_t* mio) { return wrapApiFunction( [mio]() { ASSERT(mio); - - multio::message::Metadata md; + + multio::message::Metadata md; md.set("flushKind", "end-of-simulation"); - - mio->dispatch(std::move(md), eckit::Buffer{0}, Message::Tag::Flush); - - mio->closeConnections(); + + mio->dispatch(std::move(md), eckit::Buffer{0}, Message::Tag::Flush); + + mio->closeConnections(); }, mio); #else @@ -661,7 +661,7 @@ int multio_write_field_buffer(multio_handle_t* mio, multio_metadata_t* md, multi md->md.acquire(); // Make sure metadata is not stored in a stateful container from last write md->md.modify().set("format", "raw"); - + if (byte_size == 4) { md->md.modify().set("precision", "single"); }