MADNESS 0.10.1
test_ar_large.cc File Reference

An array of more than 2^32 elements through the buffer and vector archives. More...

#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <madness/world/MADworld.h>
#include <madness/world/buffer_archive.h>
#include <madness/world/vector_archive.h>
Include dependency graph for test_ar_large.cc:

Functions

int main (int argc, char **argv)

Detailed Description

An array of more than 2^32 elements through the buffer and vector archives.

The count of an array used to be an unsigned int, so such an array was cut to its size modulo 2^32 when stored, with no error. Takes about 13 GiB, so the test carries the "large" label; test_ar.cc checks the count alone, which takes no memory.

Function Documentation

◆ main()