Skip to content

Fix the case where a focal mechanism offset (-A) was requested from externals to psmeca#6835

Merged
joa-quim merged 1 commit intomasterfrom
fix-meca-offset-externals
Jun 29, 2022
Merged

Fix the case where a focal mechanism offset (-A) was requested from externals to psmeca#6835
joa-quim merged 1 commit intomasterfrom
fix-meca-offset-externals

Conversation

@joa-quim
Copy link
Copy Markdown
Member

See this forum post for reference. Basically the story is this (also added as comment in code)

For some historical reason the parser only reads the strict number of columns needed for each convention and if there are more they are left as text. When it's asked to plot an offset ball the plotting coords are scanned from the remaining text (the n_scanned = sscanf(...) above). But from externals all numeric columns were read and the fishing in text fails resulting in no offset. Applied a patch that solves the issue but it's only that a dumb patch. Better would be to solve in origin but that's risky.

@joa-quim joa-quim requested a review from PaulWessel June 28, 2022 23:19
Copy link
Copy Markdown
Member

@PaulWessel PaulWessel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave it as this for now but need to go back and fix later.

@joa-quim joa-quim merged commit a6f00ba into master Jun 29, 2022
@joa-quim joa-quim deleted the fix-meca-offset-externals branch June 29, 2022 10:02
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

Successfully merging this pull request may close these issues.

2 participants