Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.c:47:14: error: initializer element is not a compile-time constant
double dt=1.0/sqrt(dxt*dxt+dyt*dyt+dzt*dzt);
          ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.c:48:14: error: initializer element is not a compile-time constant
double rh1=dt/u0;
           ~~^~~
prog.c:49:14: error: initializer element is not a compile-time constant
double rh2=dt/e0;
           ~~^~~
prog.c:51:16: error: initializer element is not a compile-time constant
double vvx=c*dt-dx;
           ~~~~^~~
prog.c:52:16: error: initializer element is not a compile-time constant
double wwx=c*dt+dx;
           ~~~~^~~
prog.c:53:15: error: initializer element is not a compile-time constant
double ux1=vvx/wwx;
           ~~~^~~~
prog.c:54:17: error: initializer element is not a compile-time constant
double ux2=2.*dx/wwx;
           ~~~~~^~~~
prog.c:55:33: error: initializer element is not a compile-time constant
double ux3=dx*c*c*dt*dt/2./dy/dy/wwx;
           ~~~~~~~~~~~~~~~~~~~~~^~~~
prog.c:56:33: error: initializer element is not a compile-time constant
double ux4=dx*c*c*dt*dt/2./dz/dz/wwx;
           ~~~~~~~~~~~~~~~~~~~~~^~~~
prog.c:58:16: error: initializer element is not a compile-time constant
double vvy=c*dt-dy;
           ~~~~^~~
prog.c:59:16: error: initializer element is not a compile-time constant
double wwy=c*dt+dy;
           ~~~~^~~
prog.c:60:15: error: initializer element is not a compile-time constant
double uy1=vvy/wwy;
           ~~~^~~~
prog.c:61:17: error: initializer element is not a compile-time constant
double uy2=2.*dy/wwy;
           ~~~~~^~~~
prog.c:62:33: error: initializer element is not a compile-time constant
double uy3=dy*c*c*dt*dt/2./dz/dz/wwy;
           ~~~~~~~~~~~~~~~~~~~~~^~~~
prog.c:63:33: error: initializer element is not a compile-time constant
double uy4=dy*c*c*dt*dt/2./dx/dx/wwy;
           ~~~~~~~~~~~~~~~~~~~~~^~~~
prog.c:65:16: error: initializer element is not a compile-time constant
double vvz=c*dt-dz;
           ~~~~^~~
prog.c:66:16: error: initializer element is not a compile-time constant
double wwz=c*dt+dz;
           ~~~~^~~
prog.c:67:15: error: initializer element is not a compile-time constant
double uz1=vvz/wwz;
           ~~~^~~~
prog.c:68:17: error: initializer element is not a compile-time constant
double uz2=2.*dz/wwz;
           ~~~~~^~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Exit Code:
1