Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: f2py fails on "hiperseis" program #14232

Closed
baerbock opened this issue Aug 8, 2019 · 2 comments
Closed

BUG: f2py fails on "hiperseis" program #14232

baerbock opened this issue Aug 8, 2019 · 2 comments

Comments

@baerbock
Copy link

baerbock commented Aug 8, 2019

I'm reporting here since f2py is part of numpy, but this is ONLY f2py-related!

As reported in GeoscienceAustralia/hiperseis#121 f2py fails on
https://github.com/GeoscienceAustralia/ellip-corr/blob/master/ellip/ellipcorr.f

Reading fortran codes...
	Reading file 'ellip-corr/ellip/ellipcorr.f' (format:fix,strict)
Post-processing...
	Block: ellipcorr
			Block: ellipticity_corr
{}
In: :ellipcorr:ellip-corr/ellip/ellipcorr.f:phase_alias
vars2fortran: No typespec for argument "delta".
{}
In: :ellipcorr:ellip-corr/ellip/ellipcorr.f:phase_alias
vars2fortran: No typespec for argument "ip".
			Block: phase_alias
			Block: lnblk
Post-processing (stage 2)...
Building modules...
	Building module "ellipcorr"...
		Constructing wrapper function "ellipticity_corr"...
		  tcor = ellipticity_corr(phase,edist,edepth,ecolat,azim)
		Constructing wrapper function "phase_alias"...
		  phase_alias(phase,delta,ip)
		Creating wrapper for Fortran function "lnblk"("lnblk")...
		Constructing wrapper function "lnblk"...
		  lnblk = lnblk(s)
[..]
analyzevars: character array "character*8 phcod(57)" is considered as "character phcod(57,8)"; "intent(c)" is forced.

I would glad about any hint why this error occurs.

@mattip
Copy link
Member

mattip commented Dec 3, 2019

duplicate of gh-6308. The solution there is to replace character*8 phcod with character(8) phcod. Does this solve your error?

@mattip mattip changed the title f2py fails on "hiperseis" program BUG: f2py fails on "hiperseis" program Dec 3, 2019
@pearu pearu added this to In progress in f2py usage Feb 19, 2021
@pearu pearu moved this from In progress to To do in f2py usage Feb 19, 2021
@HaoZeke
Copy link
Member

HaoZeke commented Aug 24, 2021

Closing as duplicate, and one which is fixed by #19388.

@HaoZeke HaoZeke closed this as completed Aug 24, 2021
f2py usage automation moved this from To do to Done Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants