Skip to content

Implementing Other DG Methods #50

Description

@gianmarioperrucci

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions