Thanks. So I have to build libmesh with PETSc?

> On Jun 21, 2016, at 1:35 PM, John Peterson <jwpeter...@gmail.com> wrote:
> 
> 
> 
> On Tue, Jun 21, 2016 at 12:28 PM, 张江 <zhangjiang.d...@gmail.com 
> <mailto:zhangjiang.d...@gmail.com>> wrote:
> Hi,
> 
> I am using parallel environment to read an unstructured grid data so that 
> each process is assigned one part of data. 
> But there is an error when running the program (mpiexec -n 2 ./out) at the 
> following codes:
> 
> eqsys = new EquationSystems(*mesh);
> 
> asys = &(eqsys->add_system<System>("Velocity"));
> Ax_var = asys->add_variable("Vx", FIRST, LAGRANGE);
> Ay_var = asys->add_variable("Vy", FIRST, LAGRANGE);
> Az_var = asys->add_variable("Vz", FIRST, LAGRANGE);
> 
> eqsys->init();
> 
> 
> The error is: 
> 
> Error: EigenError: EigenSparseVectors can onSparseVectors can only be usely 
> be used in serial!d in serial!
> 
> [1[0] ./inclu] ./include/libmesh/de/libmesh/eigen_spareigen_sparse_vector.h, 
> line se_vector.h, line 506, compiled Jun 11 2016 at 16:06:07
> 506, compiled Jun 11 2016 at 16:06:07
> application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
> application called MPI_Abort(MPI_COMM_WORLD, 1) - process 1
> 
> It seems that the error occurs at eqsys->init(). Is there any wrong operation 
> here? Thanks.
> 
> You are attempting to run in parallel, but don't have a parallel 
> SolverPackage (like PETSc) available for the NumericVector classes.
> 
> -- 
> John

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to