Regarding the usage of running memory

Hi,everyone! I am running a very large finite element solver.Dofs of matrix is about 10^7 or more.
Regarding writing BP4 files ,Will the BP file continue to occupy memory without being closed?
Pseudo code are as follows:

u_file = io.VTXWriter(msh.comm, "u_dynamo_"+tag+".bp4", [u_vis._cpp_object],engine="BP4")
for n in range(1000):
    t += delta_t.value
    #martix assemble
    ....
    # ksp.solve
    ....
    # update
    ....
    u_file.write()
u_file.close()

Will writing too many time steps when opening a BP file cause out of memory errors?

I don’t think they should occupy a lot of memory when kept alive, as the modification/writing of data to memory happens within the write call, and very little extra data is stored in the VTXWriter class.

I would recommend shifting to BP5, as it is the latest version from the ADIOS2 team.

1 Like