<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 17.06.2011 12:00, Jed Brown wrote:
<blockquote
cite="mid:BANLkTi=FcxLRhDRYTjabTu21Wpedt-pQLg@mail.gmail.com"
type="cite">
<div class="gmail_quote">On Fri, Jun 17, 2011 at 11:42, Alexander
Grayver <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:agrayver@gfz-potsdam.de">agrayver@gfz-potsdam.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Hello!<br>
<br>
I use petsc-3.1.7 on Windows x64 and Intel Fortran Compiler
10.1.<br>
Whenever I call VecGetArrayF90/MatGetArrayF90 it crashes.<br>
</blockquote>
<div><br>
</div>
<div>Hmm, maybe Intel Fortran has a different ABI for pointer
parameters on 64-bit Windows.</div>
</div>
</blockquote>
<br>
What is ABI?<br>
<br>
<blockquote
cite="mid:BANLkTi=FcxLRhDRYTjabTu21Wpedt-pQLg@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<div><br>
</div>
<div>Does this examples also crash?</div>
<div><br>
</div>
<div>src/vec/vec/examples/tutorials/ex4f90.F</div>
<div><br>
</div>
<div>If this doesn't work, then someone will need to learn what
the ABI is so that the F90 wrappers work.</div>
<div><br>
</div>
<div>How about this one (using F77 arrays)?</div>
<div><br>
</div>
<div>src/mat/examples/tests/ex36f.F</div>
</div>
</blockquote>
<br>
Both examples work without crashing. Pretty weird...<br>
I can tell more. I found place in my code, just different fortran
module, where VecGetArrayF90 works both on seq and mpi vectors.<br>
<br>
<blockquote
cite="mid:BANLkTi=FcxLRhDRYTjabTu21Wpedt-pQLg@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<div><br>
</div>
<div>As a short-term solution, perhaps you can use this API?</div>
<div><br>
</div>
</div>
</blockquote>
What API do you mean exactly?<br>
</body>
</html>