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

How to set the value of MINUSGRADIENT in parameters.py #108

Closed
ZongfaWang opened this issue Sep 27, 2019 · 2 comments
Closed

How to set the value of MINUSGRADIENT in parameters.py #108

ZongfaWang opened this issue Sep 27, 2019 · 2 comments

Comments

@ZongfaWang
Copy link

I download the 2D checkers model from the new website https://drive.google.com/open?id=1ow3LTYEvNn55yGeIV56sqaW-wXC0MtYW, but when i run this model, there is a KeyError: 'MINUSGRADIENT' in the inversion process. I check the parameters.py file and find there isn't the parameter MINUSGRADIENT. So i want to know what is the meaning of this parameter and how to choose its value .
thanks!!!

@Jncheer
Copy link

Jncheer commented Dec 18, 2019

I encountered the same problem, have you solved it?

@niyiyu
Copy link

niyiyu commented Feb 20, 2020

In the file seisflows/workflow/inversion.py, PAR.MINUSGRADIENT works like this:

     if PAR.MINUSGRADIENT:
        optimize.save(dst, -solver.merge(parts))
    else:
        optimize.save(dst, solver.merge(parts))

Thus, add MINUSGRADIENT whatever you like in parameters.py such that it has the form of True or False may work.

For the latest version of SPECFEM 2D (7.0), I may try to add:

MINUSGRADIENT=0

@bch0w bch0w closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants