<div dir="ltr">SInce the parameter is an integer pointer, we must convert 64-bit indices to int. Cc Mr. Hong, who wrote that line.<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">--Junchao Zhang</div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 23, 2021 at 5:36 AM Anton Glazkov <<a href="mailto:anton.glazkov@chch.ox.ac.uk">anton.glazkov@chch.ox.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-GB" style="overflow-wrap: break-word;">
<div class="gmail-m_-8100717833053643001WordSection1">
<p class="MsoNormal"><span lang="EN-US">Good morning, <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I have been trying to compile PETSc with 64bit indices and revolve. It compiles ok but gives out warnings of the kind:
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:red">{PETSCDIR PATH REMOVED}</span><span lang="EN-US">/src/ts/trajectory/impls/memory/trajmemory.c:1479:130: warning: incompatible pointer types passing 'PetscInt *' (aka 'long long *') to parameter of type
'int *' [-Wincompatible-pointer-types]<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> whattodo = revolve_action(&tjsch->rctx->check,&tjsch->rctx->capo,&tjsch->rctx->fine,tjsch->rctx->snaps_in,&tjsch->rctx->info,&tjsch->rctx->where); /* must return 1 or 3 or 4*/<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"> ^~~~~~~~~~~~~~~~~~~<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:red">{PETSCDIR PATH REMOVED}</span><span lang="EN-US">/lib/include/revolve_c.h:14:49: note: passing argument to parameter here<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">int revolve_action(int*,int*,int*,int,int*,int*);<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Is revolve incompatible with 64bit indices by design?
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Best wishes,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Anton <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">PS the compile line is this: <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">./configure –prefix={PREFIX REMOVED} --with-cc=cc --with-cxx=CC --with-fc=ftn --with-debugging=0 --with-clib-autodetect=0 --with-cxxlib-autodetect=0 --with-fortranlib-autodetect=0 --COPTFLAGS=-g -O3 --CXXOPTFLAGS=-g
-O3 --FOPTFLAGS=-g -O3 --with-64-bit-indices --with-scalar-type=complex --download-hypre-shared --download-moab-shared --download-superlu_dist-shared --download-revolve=1 --with-hdf5-dir=/opt/cray/pe/hdf5-parallel/<a href="http://1.12.0.2/CRAYCLANG/9.1" target="_blank">1.12.0.2/CRAYCLANG/9.1</a><u></u><u></u></span></p>
</div>
</div>
</blockquote></div>