<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 6/7/2012 5:48 PM, Barry Smith wrote:<br>
</div>
<blockquote
cite="mid:3FAA48E2-59D7-45E5-AAE1-A40326C5454D@mcs.anl.gov"
type="cite">
<pre wrap="">
Blaise,
Thanks.
Satish,
If they look good could you apply them to 3.3 and dev?
Thanks
Barry</pre>
</blockquote>
<br>
Hi,<br>
<br>
I downloaded petsc-dev a few days ago and applied both patches using
"patch -v ..." in both linux and windows vs2008<br>
<br>
It worked great in linux<br>
<br>
However, when I compile and link in vs2008, it gives the error:<br>
<i><br>
1>Compiling manifest to resources...<br>
1>Microsoft (R) Windows (R) Resource Compiler Version
6.1.6723.1<br>
1>Copyright (C) Microsoft Corporation. All rights reserved.<br>
1>Linking...<br>
1>libpetsc.lib(f90_cwrap.o) : error LNK2019: unresolved
external symbol F90ARRAY4dCREATESCALAR referenced in function
F90Array4dCreate<br>
1>libpetsc.lib(f90_cwrap.o) : error LNK2019: unresolved
external symbol F90ARRAY4dACCESSFORTRANADDR referenced in function
F90Array4dAccess<br>
1>libpetsc.lib(f90_cwrap.o) : error LNK2019: unresolved
external symbol F90ARRAY4dACCESSINT referenced in function
F90Array4dAccess<br>
1>libpetsc.lib(f90_cwrap.o) : error LNK2019: unresolved
external symbol F90ARRAY4dACCESSREAL referenced in function
F90Array4dAccess<br>
1>libpetsc.lib(f90_cwrap.o) : error LNK2019: unresolved
external symbol F90ARRAY4dACCESSSCALAR referenced in function
F90Array4dAccess<br>
1>libpetsc.lib(f90_cwrap.o) : error LNK2019: unresolved
external symbol F90ARRAY4dDESTROYSCALAR referenced in function
F90Array4dDestroy<br>
1>c:\obj_tmp\ibm2d_high_Re_staggered_old\Debug/ibm2d_high_Re_staggered.exe
: fatal error LNK1120: 6 unresolved externals</i><br>
<br>
I wonder if it's fixed in the new petsc-dev.<br>
<br>
Thanks<br>
<blockquote
cite="mid:3FAA48E2-59D7-45E5-AAE1-A40326C5454D@mcs.anl.gov"
type="cite">
<pre wrap="">
On Jul 6, 2012, at 6:30 AM, Blaise Bourdin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I have added the creation, destruction and accessor functions for 4d vectors in F90. The accessor was missing and needed for DMDAVecGetArrayF90 with a 3d DMDA and >1 dof. As far as I can test, ex11f90 in DM should now completely work with the intel compilers.
Some of the functions are probably not used (F90Array4dAccessReal, F90Array4dAccessInt, F90Array4dAccessFortranAddr, for instance), but I added them anyway. Let me know if you want me to submit a patch without them.
Regards,
Blaise
<DMDAVecRestoreArrayF90-2.patch>
--
Department of Mathematics and Center for Computation & Technology
Louisiana State University, Baton Rouge, LA 70803, USA
Tel. +1 (225) 578 1612, Fax +1 (225) 578 4276 <a class="moz-txt-link-freetext" href="http://www.math.lsu.edu/~bourdin">http://www.math.lsu.edu/~bourdin</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
<br>
</body>
</html>