<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Oct 30, 2018 at 3:16 AM SONG Pengyang via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you, Satish.<br>
I apologize for my undetailed question. The makefile problem usually happens due to different environment variables, so I find the administrator of the cluster and solve the problem.<br>
Another question is about function DMDACreate3d, const PetscInt lx[] needs to be defined if I want to define the size of each cell (processor), how can it be used in fortran? I have tried "integer, parameter" in fortran but it does not work.<br>
</blockquote><div><br></div><div>PETSC_NULL_INTEGER</div><div><br></div><div>  Thanks</div><div><br></div><div>    Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Regards,<br>
Pengyang<br>
<br>
----------------------------------------------------------------<br>
SONG Pengyang (宋朋洋)<br>
MSc candidate in Physical Oceanography<br>
College of Oceanic and Atmospheric Sciences<br>
Ocean University of China<br>
No. 238 Songling Road, Qingdao 266100, Shandong, China<br>
TEL: (+86)15762264643<br>
<br>
-----邮件原件-----<br>
发件人: Balay, Satish <<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>> <br>
发送时间: 2018年10月30日 11:15<br>
收件人: SONG Pengyang <<a href="mailto:Peterspy@outlook.com" target="_blank">Peterspy@outlook.com</a>><br>
抄送: <a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a><br>
主题: Re: [petsc-users] Questions about writing makefile<br>
<br>
You'll have to give more details on the problem you are having.<br>
<br>
Do you already have a makefile that partially works?<br>
<br>
And what change do you need to do?<br>
<br>
You can start off with a makefile from PETSc examples dir - and modify as needed..<br>
<br>
Satish<br>
<br>
On Tue, 30 Oct 2018, SONG Pengyang via petsc-users wrote:<br>
<br>
> Hi all<br>
> I am wondering how to write a makefile using petsc package where it route is not in petsc-dir.<br>
> I am trying to start compiling like ‘mpiifort –O3 -I… -L… ’.<br>
> Thanks in advance.<br>
> <br>
> ----------------------------------------------------------------<br>
> SONG Pengyang (宋朋洋)<br>
> MSc candidate in Physical Oceanography College of Oceanic and <br>
> Atmospheric Sciences Ocean University of China No. 238 Songling Road, <br>
> Qingdao 266100, Shandong, China<br>
> TEL: (+86)15762264643<br>
> <br>
> <br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>