Opened 11 years ago

Closed 11 years ago

#39835 closed enhancement (fixed)

adding MPI support to octopus

Reported by: dstrubbe (David Strubbe) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch maintainer Cc:
Port: octopus

Description

In this patch to the octopus Portfile, I add support for compiling with openmpi or mpich. (Unfortunately, mpi2 is not usable with openmpi, as reported in ticket #39826.) The Fortran variant of these compilers are checked against that used for libxc, netcdf-fortran, and etsf_io. A similar mechanism is used to make sure fftw-3 was built with Fortran support. gcc48 is also added as a variant.

Attachments (2)

Portfile-octopus.diff (6.9 KB) - added by dstrubbe (David Strubbe) 11 years ago.
Portfile-octopus.2.diff (7.1 KB) - added by dstrubbe (David Strubbe) 11 years ago.

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by dstrubbe (David Strubbe)

Attachment: Portfile-octopus.diff added

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Keywords: haspatch added
Version: 2.1.3

comment:2 Changed 11 years ago by mf2k (Frank Schima)

When I applied the patch and attempted to install octopus, I see the following error:

--->  Fetching distfiles for octopus
Fortran compiler is gcc47.
Error: org.macports.fetch for port octopus returned: Registry error: netcdf-fortran not registered as installed & active.

Indeed, I do not have the netcdf-fortran port installed. I feel this is a bug because it should install it if it is needed and not ask me to manually install it.

comment:3 Changed 11 years ago by dstrubbe (David Strubbe)

Thanks for trying it. I agree, that should not happen. What variants were you installing with?

comment:4 Changed 11 years ago by mf2k (Frank Schima)

I used +newuoa +gcc47.

comment:5 Changed 11 years ago by dstrubbe (David Strubbe)

Ok I see the problem: I was checking variants for netcdf-fortran even when +netcdf was not selected and so it wasn't a dependency. Can you try this revised Portfile?

Changed 11 years ago by dstrubbe (David Strubbe)

Attachment: Portfile-octopus.2.diff added

comment:6 Changed 11 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

That worked. r108659.

Note: See TracTickets for help on using tickets.