[Dune] Suppressing output from .dgf parser
Eike Mueller
e.mueller at bath.ac.uk
Thu Oct 11 08:12:48 CEST 2012
Hi Andreas,
ok, I set grdVerbose_( false ) in the constructors of ALU2dGridFactory, and that works. It does not get rid of the warning message if I have not specified the tolerance in the grid file, but I can get rid of that by just adding a tolerance parameter to the dgf file.
I also found out why my code runs out of memory: I called globalRefine() before loadBalance(), and I think then the entire grid is built on the master node. For my purpose, it's ok if I loadBalance() first and then globalRefine() as I want one element of the macrogrid (i.e. coarsest multigrid) on each process. I'm doing some scaling runs on the cubed sphere grid now.
Thanks a lot,
Eike
On 9 Oct 2012, at 20:52, Dedner, Andreas wrote:
> Ah, sorry!
> You are using the parallel metagrid - I did not get that from the output.
> Then the problem is that the output you are getting in being generate by the 2d part of the
> dune alugrid bindings which do not know anything about ranks and so on. Each grid is in fact setting
> up the same grid in this case...
>
> Have a look at
> alugrid/2d/alu2dgridfactory.hh:234 there you can change the verbosity to false.
> I think there is no way to do that "from the outside" at the moment....
>
> Best
> Andreas
> ________________________________________
> From: dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org [dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org] on behalf of Dedner, Andreas [A.S.Dedner at warwick.ac.uk]
> Sent: 09 October 2012 20:11
> To: Andreas Lauser; dune at dune-project.org
> Subject: Re: [Dune] Suppressing output from .dgf parser
>
> Hi.
> The problem is a different one:
> From the output it seems that Eike is using AluGrid<2,3>. i.e.,
> the 2d alugrid version and that does not run in parallel.
> So you are simply getting 1000+ processes running the same problem and all
> having rank=0.
> Best
> Andreas
> ________________________________________
> From: dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org [dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org] on behalf of Andreas Lauser [andreas.lauser at iws.uni-stuttgart.de]
> Sent: 09 October 2012 18:40
> To: dune at dune-project.org
> Subject: Re: [Dune] Suppressing output from .dgf parser
>
> Hi Eike,
>
> Do you want to run 1000 sequential simulations, or do you want to run one
> simulation on 1000 cores? If the latter, please check that the summary says
> that ALUGrid is compiled for parallel usage, i.e. that the corrosponding
> summary line reads:
>
> ALUGrid.................: version 1.50 (parallel)
>
> (In my simulations, the message is only printed once even for parallel runs,
> so you probably did not compile the ALU library for parallel usage...)
>
> cheers
> Andreas
>
> Am Dienstag, 9. Oktober 2012, 17:41:37 schrieb Eike Mueller:
>> Dear DUNE list,
>>
>> in my code I'm reading in a .dgf file as follows:
>>
>> typedef Dune::GridSelector::GridType HostGrid;
>> Dune::GridPtr<HostGrid>
>> gridPtr(grid_param.gridFilename(),MPI_COMM_WORLD); HostGrid& hostgrid =
>> *gridPtr;
>>
>> If I do this in parallel, each process prints out the following message:
>>
>> Created serial ALUGrid<2,3,cube,nonconforming> from macro grid file
>> './cubedsphere_2x2.dgf.
>>
>> (and also complains that I didn't specify the tolerance parameter).
>>
>> Can I somehow switch off these messages or make only the master process
>> print out this information?
>>
>> When running with 1000+ processes these messages make my output files pretty
>> hard to read...
>>
>> Thanks a lot,
>>
>> Eike
> --
> Andreas Lauser
> Department of Hydromechanics and Modelling of Hydrosystems
> University of Stuttgart
> Pfaffenwaldring 61
> D-70569 Stuttgart
> Phone: (+49) 711 685-64719
> Fax: (+49) 711 685-60430
> www.hydrosys.uni-stuttgart.de
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
>
>
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
More information about the Dune
mailing list