[petsc-users] Questions about writing makefile

Matthew Knepley knepley at gmail.com
Tue Oct 30 06:25:07 CDT 2018


On Tue, Oct 30, 2018 at 3:16 AM SONG Pengyang via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Thank you, Satish.
> 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.
> 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.
>

PETSC_NULL_INTEGER

  Thanks

    Matt


> Regards,
> Pengyang
>
> ----------------------------------------------------------------
> SONG Pengyang (宋朋洋)
> MSc candidate in Physical Oceanography
> College of Oceanic and Atmospheric Sciences
> Ocean University of China
> No. 238 Songling Road, Qingdao 266100, Shandong, China
> TEL: (+86)15762264643
>
> -----邮件原件-----
> 发件人: Balay, Satish <balay at mcs.anl.gov>
> 发送时间: 2018年10月30日 11:15
> 收件人: SONG Pengyang <Peterspy at outlook.com>
> 抄送: petsc-users at mcs.anl.gov
> 主题: Re: [petsc-users] Questions about writing makefile
>
> You'll have to give more details on the problem you are having.
>
> Do you already have a makefile that partially works?
>
> And what change do you need to do?
>
> You can start off with a makefile from PETSc examples dir - and modify as
> needed..
>
> Satish
>
> On Tue, 30 Oct 2018, SONG Pengyang via petsc-users wrote:
>
> > Hi all
> > I am wondering how to write a makefile using petsc package where it
> route is not in petsc-dir.
> > I am trying to start compiling like ‘mpiifort –O3 -I… -L… ’.
> > Thanks in advance.
> >
> > ----------------------------------------------------------------
> > SONG Pengyang (宋朋洋)
> > MSc candidate in Physical Oceanography College of Oceanic and
> > Atmospheric Sciences Ocean University of China No. 238 Songling Road,
> > Qingdao 266100, Shandong, China
> > TEL: (+86)15762264643
> >
> >
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20181030/19c1ce7c/attachment.html>


More information about the petsc-users mailing list