Opened 4 years ago

#1768 new enhancement

Output of distrib=constant arrays

Reported by: Ian Hinder Owned by: Erik Schnetter
Priority: minor Milestone:
Component: Carpet Version: development version
Keywords: Cc: ian.hinder@…


I have a Cactus array with size=1 and distrib=constant. I would like to see its value on all processes. According to, it has been observed that CarpetIOASCII (and CarpetIOHDF5) only output the data from process 0, whereas IOASCII outputs the data from all processes. The reason I need this is that I want to see the system swap usage on each process stored in SystemStatistics::process_memory_mb. The data is legitimately different on each process.

REAL process_memory_mb TYPE=array DIM=1 SIZE=1 DISTRIB=constant TAGS='Checkpoint="no"'

How hard would it be to add support to CarpetIOASCII for outputting grid array data from all processes for distrib-constant arrays? It already does this for distrib=default.

To use the current functionality, one way would be to increase the size of the array and then write code to replicate the data between processes. However, I don't think there is any way to specify that the array should have size=NPROCS, so you would have to specify this using a parameter, and this is a lot of work for something which would more naturally be done in CarpetIOASCII.

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Erik Schnetter.
Next status will be 'review'.
as The resolution will be set.
to The owner will be changed from Erik Schnetter to the specified user.
Next status will be 'confirmed'.
The owner will be changed from Erik Schnetter to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.