DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
SerializerJSON.hpp File Reference

Per-rank JSON serializer implementing the SerializerBase interface. More...

#include "SerializerBase.hpp"
#include "DNDS/JsonUtil.hpp"
#include <fstream>
#include <map>
Include dependency graph for SerializerJSON.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DNDS::Serializer::SerializerJSON
 Per-rank JSON file serializer; each MPI rank writes its own .json file. More...
 

Namespaces

namespace  DNDS
 the host side operators are provided as implemented
 
namespace  DNDS::Serializer
 

Detailed Description

Per-rank JSON serializer implementing the SerializerBase interface.

Unit Test Coverage (test_Serializer.cpp, MPI np=1,2,4)
  • Scalar round-trip: WriteInt/ReadInt, WriteIndex/ReadIndex, WriteReal/ReadReal, WriteString/ReadString
  • Vector round-trip: WriteRealVector, WriteIndexVector, WriteRowsizeVector
  • uint8 array: with and without codec (base64 + zlib)
  • Path operations: CreatePath, GoToPath, GetCurrentPath, ListCurrentPath
  • Shared pointer deduplication: WriteSharedIndexVector / ReadSharedIndexVector
Not Yet Tested
  • WriteSharedRowsizeVector / ReadSharedRowsizeVector
  • WriteIndexVectorPerRank
  • SetDeflateLevel impact verification
  • Error handling (nonexistent file, duplicate paths)

Definition in file SerializerJSON.hpp.