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

EvalModel with more than 8 parameters #5

Open
Thomas-Ulrich opened this issue Dec 4, 2019 · 4 comments
Open

EvalModel with more than 8 parameters #5

Thomas-Ulrich opened this issue Dec 4, 2019 · 4 comments

Comments

@Thomas-Ulrich
Copy link
Contributor

If I used this file:

!EvalModel
parameters: [test, lithostaticStress, b_xx, b_yy, b_xy, b_yz, b_xz, gamma]
model: !Switch
  [test]: !AffineMap
      matrix:
        z: [0.0, 0.0, 1.0]
      translation:
        z: 0
      components:
        - !FunctionMap
          map:
           test: return z;
  [lithostaticStress, b_xx, b_yy, b_zz, b_xy, b_yz, b_xz,gamma,Omega]: !ConstantMap
          map:
              lithostaticStress: 0.974
              b_xx: 0.974
              b_yy: 0.974
              b_zz: 0.974
              b_xy: 0.974
              b_yz: 0.974
              b_xz: 0.974
              gamma: 0.974
components: !FunctionMap
      map:
        s_zz:     return lithostaticStress;
        s_xx:     return lithostaticStress;
        s_yy:     return lithostaticStress;
        s_xy:     return lithostaticStress;
        s_yz:     return lithostaticStress;
        s_xz:     return lithostaticStress;
        bulkFriction: |
          return test;
        plastCo: |
          return test;

And plot bulkFriction against z, I get, as expected:

z bulkFriction
-100  -100
-200  -200
-300  -300
-400  -400

Now same file, with one more parameter:

!EvalModel
parameters: [test, lithostaticStress, b_xx, b_yy, b_xy, b_yz, b_xz, gamma, Omega]
model: !Switch
  [test]: !AffineMap
      matrix:
        z: [0.0, 0.0, 1.0]
      translation:
        z: 0
      components:
        - !FunctionMap
          map:
           test: return z;
  [lithostaticStress, b_xx, b_yy, b_zz, b_xy, b_yz, b_xz,gamma,Omega]: !ConstantMap
          map:
              lithostaticStress: 0.974
              b_xx: 0.974
              b_yy: 0.974
              b_zz: 0.974
              b_xy: 0.974
              b_yz: 0.974
              b_xz: 0.974
              gamma: 0.974
              Omega: 0.974
components: !FunctionMap
      map:
        s_zz:     return lithostaticStress;
        s_xx:     return lithostaticStress;
        s_yy:     return lithostaticStress;
        s_xy:     return lithostaticStress;
        s_yz:     return lithostaticStress;
        s_xz:     return lithostaticStress;
        bulkFriction: |
          return test;
        plastCo: |
          return test;

and I get:

-100 2.16654e-317
-200 2.16654e-317
-300 2.16654e-317
-400 2.16654e-317
@uphoffc
Copy link
Contributor

uphoffc commented Dec 4, 2019

Issue is with ImpalaJIT. Could not find the bug.
-> Should switch to something else.

@daisy20170101
Copy link
Contributor

I need more than 8 parameters as well. Hope this could be fixed:-)

@uphoffc
Copy link
Contributor

uphoffc commented Sep 24, 2021

Maybe we could include Lua as an alternative to ImpalaJIT. There we wouldn't have such a limitation.

@Thomas-Ulrich
Copy link
Contributor Author

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

3 participants