Pluto build error with DIM=3- Error: ‘vx3’ undeclared

33 views
Skip to first unread message

Anil Bommareddy

unread,
Mar 24, 2020, 2:56:01 AM3/24/20
to Pluto development
Hi All,

I recently downloaded Pluto to use with AMR with Chombo. When I download a fresh version of Chombo-3.2 and apply the patch.
Chombo-3.2 build successfully.Try to build Pluto with DIM-3 ,build error observed 
Issues(build) error not observed with DIM=1.


python $PLUTO_DIR/setup.py --with-chombo --no-curses

(' 1', ') ', 'DIMENSIONS                  ', '3')
('>> ', 'HD Menu\n')
(' 0', ') ', 'EOS                         ', 'IDEAL')
(' 1', ') ', 'ENTROPY_SWITCH              ', 'CHOMBO_REGRID')
> Generating makefile... [Linux.gcc.defs]
  - Chombo config string: DIM=3

Make erro:
======


gcc -c -O3 -DCH_SPACEDIM=3 -I. -I/PLUTO/Src -I/PLUTO/Src/Chombo   -I/PLUTO/Lib/Chombo-3.2/lib/src/AMRTimeDependent  -I/PLUTO/Lib/Chombo-3.2/lib/src/AMRTools  -I/PLUTO/Lib/Chombo-3.2/lib/src/BoxTools -I/PLUTO/Lib/Chombo-3.2/lib/src/BaseTools -I/PLUTO/Src/HD -I/PLUTO/Src/EOS/Ideal PLUTO/Src/flag_shock.c
In file included from PLUTO/Src/pluto.h:530,
                 from PLUTO/Src/flag_shock.c:67:
/PLUTO/Src/flag_shock.c: In function ‘FlagShock’:
/PLUTO/Src/flag_shock.c:144:22: error: ‘vx2’ undeclared (first use in this function); did you mean ‘Ax2’?
              dvx2 = (vx2[k][j+1][i] - vx2[k][j-1][i])/dx2[j];   ,
                      ^~~
/PLUTO/Src/macros.h:253:28: note: in definition of macro ‘D_EXPAND’
  #define D_EXPAND(a,b,c) a b c
                            ^
/PLUTO/Src/flag_shock.c:144:22: note: each undeclared identifier is reported only once for each function it appears in
              dvx2 = (vx2[k][j+1][i] - vx2[k][j-1][i])/dx2[j];   ,
                      ^~~
/PLUTO/Src/macros.h:253:28: note: in definition of macro ‘D_EXPAND’
  #define D_EXPAND(a,b,c) a b c
                            ^
/PLUTO/Src/flag_shock.c:145:22: error: ‘vx3’ undeclared (first use in this function); did you mean ‘Ax3’?
              dvx3 = (vx3[k+1][j][i] - vx3[k-1][j][i])/dx3[k];)
                      ^~~
/PLUTO/Src/macros.h:253:30: note: in definition of macro ‘D_EXPAND

-Anil




Reply all
Reply to author
Forward
0 new messages