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.
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 <[email protected]> 
发送时间: 2018年10月30日 11:15
收件人: SONG Pengyang <[email protected]>
抄送: [email protected]
主题: 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 �CO3 -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
> 
> 

Reply via email to