[petsc-users] Questions about writing makefile

SONG Pengyang Peterspy at outlook.com
Tue Oct 30 02:10:57 CDT 2018


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 <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 ¨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
> 
> 


More information about the petsc-users mailing list