[Trilinos-Users] Using SerialComm when MPI is enabled

Heroux, Mike MHeroux at csbsju.edu
Mon Sep 9 21:12:48 MDT 2013


This should work, but I think you will need to use Belos for the linear solver instead of AztecOO.  

Anyone else have experience with this?

Mike

On Sep 9, 2013, at 9:35 PM, "Eric Marttila" <eric.marttila at thermoanalytics.com> wrote:

> Hello,
> 
> Is it possible to use Trilinos in serial mode even when it is 
> compiled with MPI turned on?
> 
> I have some code that runs in parallel (using MPI) for some of 
> its operation, but I want to use just a single process for a 
> second part of the application, and this second part involves the  
> execution of an AztecOO solve.  I thought I could do this by 
> using Epetra_SerialComm instead of Epetra_MpiComm when setting up 
> my AztecOO solve.
> 
> However, when running a solve I get an error from AztecOO:
> AztecOO::SetProcConfig ERROR, failed to dynamic_cast Comm to 
> Epetra_MpiComm. dynamic_cast of Comm() failed
> 
> Does anyone know of a work-around to this problem?  Or do I have 
> to build trilinos without MPI support to do what I need to do?
> 
> Thank you,   
> --Eric
> 
> -- 
> Eric A. Marttila
> ThermoAnalytics, Inc.
> Email: Eric.Marttila at ThermoAnalytics.com
> Phone: 810-636-2443
> http://www.thermoanalytics.com
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users



More information about the Trilinos-Users mailing list