ForestClaw / forestclaw

Quadtree/octree adaptive PDE solver based based on p4est.
http://www.forestclaw.org
BSD 2-Clause "Simplified" License
58 stars 22 forks source link

sc output of options used #103

Closed donnaaboise closed 6 years ago

donnaaboise commented 8 years ago

Originally reported by: Donna Calhoun (Bitbucket: donnaaboise, GitHub: donnaaboise)


every once in a while, the [fclaw] and [p4est] options printing at the beginning of a run get interspersed, making it hard to parse the file.

[fclaw]    noweightedp            false
[p4est 58] Local minimum/maximum levels:  4  4
[fclaw]    trapfpe                false
[p4est 59] Patches on level  4:         4
[fclaw]    mpi_debug              false
[p4est 58] Patches on level  4:         4
[fclaw]    ghost_patch_pack_area  true
[p4est 55] Local minimum/maximum levels:  4  4
[fclaw]    mi                     1
[p4est 54] Local minimum/maximum levels:  4  4
[fclaw]    mj                     1
[p4est 55] Patches on level  4:         4
[fclaw]    periodic_x             true
[p4est 54] Patches on level  4:         4
[fclaw]    periodic_y             true
[p4est 57] Local minimum/maximum levels:  4  4

Can a barrier, or some other feature be added so that this doesn't happen?

This has only happened twice now, and so it is easy enough to edit the output file. But the less manual intervention that is needed, but better.


cburstedde commented 6 years ago

A barrier might help, but it's no guarantee. Production runs should have no output from any other procs than 0 anyway -- is this observed?

donnaaboise commented 6 years ago

I should develop a better way to parse output files - probably reading a summary line is the best way to get. Alternatively, it is straightforward to write out a binary file with all of the output that can be easily read by Python.

cburstedde commented 5 years ago

Have we activated the summary line in sc_stats_print? It gives you the averages and maxima and is easy to parse (matlab-style).