<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello PETSc users,<br>
<br>
I am trying to build the latest stable release of Trilinos
(v10.12.2), with PETSc 3.3-p2 as one of the dependencies.<br>
<br>
This fails, because Trilinos v10.12.2 doesn't yet cope with some of
the changes made in PETSc v3.3, in particular the extra block size
argument that was added to the VecCreateMPIWithArray function (as
reported on
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a href="http://www.mcs.anl.gov/petsc/documentation/changes/33.html">http://www.mcs.anl.gov/petsc/documentation/changes/33.html</a>).<br>
<br>
My question is simple (I think): how should code that is using the
VecCreateMPIWithArray function before the block size argument was
introduced be changed such that it compiles and works correctly?<br>
<br>
Frankly, I have no idea what the code does (I'm not an end-user),
I'm just trying to get it to build. <br>
<br>
My gut feeling says that I should just add the block size argument
as '1', which seems a reasonable default is no block size was being
used before.<br>
So, I would change the current code<br>
<br>
VecCreateMPIWithArray(comm->USR_comm,inlen,PETSC_DECIDE,x2,&petscX);<br>
<br>
to something like<br>
<br>
VecCreateMPIWithArray(comm->USR_comm, 1,
inlen,PETSC_DECIDE,x2,&petscX);<br>
<br>
<br>
Is that correct, or is there another way to fix this?<br>
<br>
<br>
<br>
regards,<br>
<br>
Kenneth<br>
</body>
</html>