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

Divid by zero possibility in CBCK12 #43

Open
langevin-usgs opened this issue Feb 24, 2019 · 0 comments
Open

Divid by zero possibility in CBCK12 #43

langevin-usgs opened this issue Feb 24, 2019 · 0 comments
Milestone

Comments

@langevin-usgs
Copy link
Collaborator

The revised code for calculating K for anisotropic cases could have a divide by zero if cl1 or cl2 is specified by the user as zero. I suggest that we construct the denominator here in pieces as ANUM or HYMEAN could possibly be zero if their lengths (EL1 or EL2) are zero.

        ACA = COS(ANGLE) * COS(ANGLE)
        ASA = SIN(ANGLE) * SIN(ANGLE)
        ANUM = 1.0 / (ACA/ANUM + ASA/HYMEAN)        

@langevin-usgs langevin-usgs added this to the v.1.5 milestone Feb 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant