Exasim icon indicating copy to clipboard operation
Exasim copied to clipboard

Implementing Other DG Methods

Open gianmarioperrucci opened this issue 8 months ago • 1 comments

Hello, I'm trying to implement my numerical flux but as soon as I define it in the model file, two problems arise:

  1. the following error appear:
opuFhat.cpp: In function ‘void opuFhat(T*, T*, T*, T*, T*, T*, T*, T*, T*, T*, T*, T*, T*, T, int, int, int, int, int, int, int, int)’:
opuFhat.cpp:15:27: error: ‘udgp’ was not declared in this scope; did you mean ‘udgp1’?
   15 |                 T udgp1 = udgp[0*ng+i];
      |                           ^~~~
      |                           udgp1
opuFhat.cpp:27:27: error: ‘udgm’ was not declared in this scope; did you mean ‘udgm1’?
   27 |                 T udgm1 = udgm[0*ng+i];
      |                           ^~~~
      |                           udgm1
  1. any flux I enter the result remains the same, wrong (after a few iterations NaN and a non-physical field are generated)

I inserted the correct flag in the app file, I tried to define also the numerical trace but still the result does not change. I’m using the naca0012 profile test case (Euler model) to make sure the rest of the code is well written.

Thanks for reading.

gianmarioperrucci avatar Jun 19 '24 08:06 gianmarioperrucci