Re: [deal.II] Re: p4est has to be configured with enabled zlib support

2017-05-04 Thread Lev Karatun
Hi Bruno, I was trying to update dealII on a cluster with Trilinos that I didn't even install myself, but loaded using a module manager. I got the exact same error message as before. Is having Trilinos configured with zlib support something that was introduced recently? If not, can it be that deal

[deal.II] estimate globally integrated quantity with mpi

2017-05-04 Thread Weixiong Zheng
Hi I didn't find a related Q&A so I put this here: how do I estimate a quantity by integrating the solution over the whole problem domain when using MPI I am developing a code using MPI, which is my first time involving it based on the way presented in Step 42. If you could tell me a specific

Re: [deal.II] estimate globally integrated quantity with mpi

2017-05-04 Thread Timo Heister
Weixiong, this depends on what you want to compute exactly: - There is VectorTools::compute_global_error() that does the MPI reduction for you - There are wrappers around MPI commands like Utilities::MPI::sum(), max(), ... - you can always use MPI directly - If you have parallel vectors you can us

Re: [deal.II] estimate globally integrated quantity with mpi

2017-05-04 Thread Weixiong Zheng
Timo, Great! I looked at Utilities::MPI::sum() and it might be exactly what I need. Do I use it in this way? double global_quantity = 0; for locally_owned_cell quantity += local_cell_contribution Utilities::MPI::sum(global_quantity, mpi_communicator); Thanks so much for the quick reply! We

Re: [deal.II] estimate globally integrated quantity with mpi

2017-05-04 Thread Wolfgang Bangerth
On 05/04/2017 02:45 PM, Weixiong Zheng wrote: Great! I looked at Utilities::MPI::sum() and it might be exactly what I need. Do I use it in this way? double global_quantity = 0; for locally_owned_cell quantity += local_cell_contribution Utilities::MPI::sum(global_quantity, mpi_communicator)

Re: [deal.II] Re: p4est has to be configured with enabled zlib support

2017-05-04 Thread Bruno Turcksin
Lev 2017-05-04 15:45 GMT-04:00 Lev Karatun : > I was trying to update dealII on a cluster with Trilinos that I didn't even > install myself, but loaded using a module manager. I got the exact same > error message as before. Is having Trilinos configured with zlib support > something that was intro

Re: [deal.II] Re: p4est has to be configured with enabled zlib support

2017-05-04 Thread Lev Karatun
Hi Bruno, is this a recently introduced requirement? Best regards, Lev Karatun. 2017-05-05 0:39 GMT-04:00 Bruno Turcksin : > Lev > > 2017-05-04 15:45 GMT-04:00 Lev Karatun : > > I was trying to update dealII on a cluster with Trilinos that I didn't > even > > install myself, but loaded using a