Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Error while Making BoxMG?

ashish__shaji

New member
I have been trying to install BoxMG for WRF-Elec, and the system produced the following error while doing so.

mpif77 -funderscoring -DRKIND=4 -I../../include -I../../extras/msg/include -I../../extras/boxmg-serial/include -Waliasing -Wsurprising -O3 -I/home/ashishshaji/Build_WRF/LIBRARIES/grib2/include -DBOXMG_TIMER_ETIMEi -DBOXMG_TIMER_ETIMEi -DBOXMG_TIMER_ETIMEi -c -o BMG2_SymStd_DUMP_vector.o BMG2_SymStd_DUMP_vector.F
BMG2_SymStd_DUMP_vector.F:186:28:

156 | CALL MPI_Bcast( TMP_iBUFFER, NTMP_iBUFFER, MPI_INTEGER,
| 2
......
186 | CALL MPI_Bcast( IO_DONE, iONE, MPI_INTEGER,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
BMG2_SymStd_DUMP_vector.F:209:28:

156 | CALL MPI_Bcast( TMP_iBUFFER, NTMP_iBUFFER, MPI_INTEGER,
| 2
......
209 | CALL MPI_Bcast( IO_CONT, iONE, MPI_INTEGER,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
make[2]: *** [<builtin>: BMG2_SymStd_DUMP_vector.o] Error 1
rm BMG2_SymStd_ErrTrap.o BMG2_SymStd_LineSolve_A.o BMG2_SymStd_SETUP_space.o BMG2_SymStd_COPY_cg_WS_So_O BMG2_SymStd_SETUP_interp_OI.o BMG2_SymStd_SETUP_PtrGrid.o BMG2_SymStd_UTILS_dxpby.o BMG2_SymStd_UTILS_norm_l2.o BMG2_SymStd_UTILS_dot_l2.o BMG2_SymStd_SETUP_parms.o BMG2_SymStd_SETUP_nog.o BMG2_SymStd_SETUP_MSG.o BMG2_SymStd_ncycle.o BMG2_SymStd_residual.o BMG2_SymStd_SETUP_fine_stencil.o BMG2_SymStd_COPY_cg_rV_G_L.o BMG2_SymStd_SOLVE_pcg.o BMG2_SymStd_UTILS_zero_times.o BMG2_SymStd_SETUP_MSGGrid.o BMG2_SymStd_relax_lines_y.o BMG2_SymStd_SETUP_ITLI_bl.o BMG2_SymStd_UTILS_matvec.o BMG2_SymStd_interp_add.o BMG2_SymStd_UTILS_reswt.o BMG2_SymStd_UTILS_bbody9.o BMG2_SymStd_SETUP_recip.o BMG2_SymStd_relax.o BMG2_SymStd_SETUP_LS.o BMG2_SymStd_COPY_cg_WS_RHS.o BMG2_SymStd_SETUP_ITLI_ex.o BMG2_SymStd_UTILS_rV_zero.o BMG2_SymStd_SETUP_relax.o BMG2_SymStd_OUTPUT_times.o BMG2_SymStd_UTILS_bbody5.o BMG2_SymStd_SETUP_cg_parms.o BMG2_SymStd_SETUP_cg_LU.o BMG2_SymStd_restrict.o BMG2_SymStd_relax_lines_x.o BMG2_SymStd_SETUP_LSGrid.o BMG2_SymStd_SETUP_lines_x.o BMG2_SymStd_LineSolve_C.o BMG2_SymStd_SOLVE_cg_boxmg.o BMG2_SymStd_SETUP_PtrLS.o BMG2_SymStd_SOLVE_cg_LU.o BMG2_SymStd_SETUP_PtrWork.o BMG2_SymStd_SOLVE_boxmg.o BMG2_SymStd_updown.o BMG2_SymStd_SETUP_parts.o BMG2_SymStd_PRECON_boxmg.o BMG2_SymStd_SETUP_cg_boxmg.o BMG2_SymStd_UTILS_update_ghosts.o BMG2_SymStd_GET_pointers.o BMG2_SymStd_SETUP_ProcGrid_file.o BMG2_SymStd_SETUP_PtrMSGSo_O BMG2_SymStd_SETUP_MSGGridSo_O BMG2_SymStd_LineSolve_B.o BMG2_SymStd_SETUP_lines_y.o BMG2_SymStd_relax_GS.o BMG2_SymStd_SETUP_PtrMSG.o BMG2_SymStd_UTILS_dscal.o BMG2_SymStd_UTILS_dcopy.o BMG2_SymStd_UTILS_daxpy.o BMG2_SymStd_PRECON_diag.o
make[1]: *** [Makefile:121: library] Error 2
make: *** [Makefile:104: makewithflags] Error 2


Can anyone help me with this?
 

Attachments

  • boxmg.log
    28.8 KB · Views: 1
Hi,
Unfortunately our group is not the one that manages or supports WRF-Elec. You will need to contact the group that does for support issues.
 
Can you please direct me to such a group or platform? I have been searching for such a group, and haven't found it yet.
 
I am not familiar with the group, so unfortunately I'm unable to help with that. I'm sorry.
 
I have completed the installation with the help of a colleague. Thanks anyway. If someone has any doubts related to the installation and usage of BoxMG and WRF-elec, feel free to contact us.

Thanks
 
I have completed the installation with the help of a colleague. Thanks anyway. If someone has any doubts related to the installation and usage of BoxMG and WRF-elec, feel free to contact us.

Thanks
Hello! I encountered the following errors during the compilation process. Do you know how to solve them?
/public/home/fff/liudx/boxmg/boxmg4wrf-0.1/lib/libboxmg_opt_sgl.a(BMG3_SymStd_SETUP_space.o):在函数‘bmg3_symstd_setup_space_’中: BMG3_SymStd_SETUP_space.F:(.text+0x8a0):对‘bmg3_ser_symstd_setup_ptrwork_’未定义的引用 /public/home/fff/liudx/boxmg/boxmg4wrf-0.1/lib/libboxmg_opt_sgl.a(BMG3_SymStd_SETUP_cg_parms.o):在函数‘bmg3_symstd_setup_cg_parms_’中: BMG3_SymStd_SETUP_cg_parms.F:(.text+0x29):对‘bmg3_ser_symstd_setup_parms_’未定义的引用 /public/home/fff/liudx/boxmg/boxmg4wrf-0.1/lib/libboxmg_opt_sgl.a(BMG3_SymStd_SETUP_cg_boxmg.o):在函数‘bmg3_symstd_setup_cg_boxmg_’中: BMG3_SymStd_SETUP_cg_boxmg.F:(.text+0xa1f):对‘bmg3_ser_symstd_setup_ptrwork_’未定义的引用 BMG3_SymStd_SETUP_cg_boxmg.F:(.text+0x11d7):对‘bmg3_ser_symstd_solve_boxmg_’未定义的引用 /public/home/fff/liudx/boxmg/boxmg4wrf-0.1/lib/libboxmg_opt_sgl.a(BMG3_SymStd_SOLVE_cg_boxmg.o):在函数‘bmg3_symstd_solve_cg_boxmg_’中: BMG3_SymStd_SOLVE_cg_boxmg.F:(.text+0xd00):对‘bmg3_ser_symstd_solve_boxmg_’未定义的引用 0.40user 0.57system 0:01.31elapsed 74%CPU (0avgtext+0avgdata 135140maxresident)k 0inputs+152outputs (25major+74203minor)pagefaults 0swaps make[1]: [em_wrf] 错误 1 (忽略) make[1]: 离开目录“/public/home/elpt_2023_000313/test/wrf4-elec-release-v4.5.1-elec/main”
 
## ELEC SETUP ##

export BOXMG_OS=Linux
export BOXMG_CPU=x86_64
export BOXMG_CLEVEL=opt
export BOXMG_COMPILER=gnu
export BOXMG_ARCH=Linux-intel
export BOXMG_PRECISION=SINGLE
export BOXMG_MPI=yes
export WRF_ELEC=1
export BOXMGLIBDIR=/path/to/your/boxmg/

I hope that you are using a Linux system and gnu compilers.
 
## ELEC SETUP ##

export BOXMG_OS=Linux
export BOXMG_CPU=x86_64
export BOXMG_CLEVEL=opt
export BOXMG_COMPILER=gnu
export BOXMG_ARCH=Linux-intel
export BOXMG_PRECISION=SINGLE
export BOXMG_MPI=yes
export WRF_ELEC=1
export BOXMGLIBDIR=/path/to/your/boxmg/

I hope that you are using a Linux system and gnu compilers.
edit bashrc and add this and then try again
 
I have completed the installation with the help of a colleague. Thanks anyway. If someone has any doubts related to the installation and usage of BoxMG and WRF-elec, feel free to contact us.

Thanks
Hi Ashish,

I'm facing the same issue, Can you please help how you resolved the installation of BoxMG4WRF.

-Wsurprising -O3 -DBOXMG_TIMER_ETIMEi -c -o BMG2_SymStd_DUMP_parms.o BMG2_SymStd_DUMP_parms.F
mpif77 -funderscoring -DRKIND=4 -I../../include -I../../extras/msg/include -I../../extras/boxmg-serial/include -Waliasing -Wsurprising -O3 -DBOXMG_TIMER_ETIMEi -c -o BMG2_SymStd_DUMP_interp.o BMG2_SymStd_DUMP_interp.F
ar csrv ../../lib/libboxmg_opt_sgl.a BMG2_SymStd_updown.o
a - BMG2_SymStd_updown.o
ar csrv ../../lib/libboxmg_opt_sgl.a BMG2_SymStd_SETUP_PtrWork.o
a - BMG2_SymStd_SETUP_PtrWork.o
ar csrv ../../lib/libboxmg_opt_sgl.a BMG2_SymStd_SETUP_PtrGrid.o
ar csrv ../../lib/libboxmg_opt_sgl.a BMG2_SymStd_SETUP_space.o
ar csrv ../../lib/libboxmg_opt_sgl.a BMG2_SymStd_SETUP_nog.o
ar csrv ../../lib/libboxmg_opt_sgl.a BMG2_SymStd_SETUP_parts.o
ar csrv ../../lib/libboxmg_opt_sgl.a BMG2_SymStd_SETUP_interp_OI.o
ar csrv ../../lib/libboxmg_opt_sgl.a BMG2_SymStd_SETUP_ITLI_ex.o
ar: ../../lib/libboxmg_opt_sgl.a: File format not recognized
ar: ../../lib/libboxmg_opt_sgl.a: File format not recognized
ar: ../../lib/libboxmg_opt_sgl.a: File format not recognized
ar: ../../lib/libboxmg_opt_sgl.a: File format not recognized
ar: ../../lib/libboxmg_opt_sgl.a: File format not recognized
ar: ../../lib/libboxmg_opt_sgl.a: File format not recognized
make[2]: *** [<builtin>: ../../lib/libboxmg_opt_sgl.a(BMG2_SymStd_SETUP_ITLI_ex.o)] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [<builtin>: ../../lib/libboxmg_opt_sgl.a(BMG2_SymStd_SETUP_PtrGrid.o)] Error 1
make[2]: *** [<builtin>: ../../lib/libboxmg_opt_sgl.a(BMG2_SymStd_SETUP_nog.o)] Error 1
make[2]: *** [<builtin>: ../../lib/libboxmg_opt_sgl.a(BMG2_SymStd_SETUP_space.o)] Error 1
make[2]: *** [<builtin>: ../../lib/libboxmg_opt_sgl.a(BMG2_SymStd_SETUP_parts.o)] Error 1
make[2]: *** [<builtin>: ../../lib/libboxmg_opt_sgl.a(BMG2_SymStd_SETUP_interp_OI.o)] Error 1
rm BMG2_SymStd_relax_GS.o BMG2_SymStd_UTILS_reswt.o BMG2_SymStd_SETUP_lines_y.o BMG2_SymStd_LineSolve_A.o BMG2_SymStd_SETUP_cg_boxmg.o BMG2_SymStd_UTILS_bbody9.o BMG2_SymStd_COPY_cg_WS_RHS.o BMG2_SymStd_DUMP_parms.o BMG2_SymStd_UTILS_daxpy.o BMG2_SymStd_SETUP_interp_OI.o BMG2_SymStd_SETUP_ProcGrid_file.o BMG2_SymStd_UTILS_norm_l2.o BMG2_SymStd_SETUP_PtrMSG.o BMG2_SymStd_SETUP_fine_stencil.o BMG2_SymStd_DUMP_restrict.o BMG2_SymStd_DUMP_interp.o BMG2_SymStd_LineSolve_B.o BMG2_SymStd_SOLVE_cg_boxmg.o BMG2_SymStd_DUMP_vector.o BMG2_SymStd_SETUP_PtrGrid.o BMG2_SymStd_SETUP_lines_x.o BMG2_SymStd_ErrTrap.o BMG2_SymStd_relax_lines_y.o BMG2_SymStd_SETUP_ITLI_bl.o BMG2_SymStd_LineSolve_C.o BMG2_SymStd_UTILS_bbody5.o BMG2_SymStd_SETUP_relax.o BMG2_SymStd_SETUP_LSGrid.o BMG2_SymStd_DUMP_stencil.o BMG2_SymStd_residual.o BMG2_SymStd_COPY_cg_WS_So_O BMG2_SymStd_UTILS_dscal.o BMG2_SymStd_UTILS_update_ghosts.o BMG2_SymStd_UTILS_dcopy.o BMG2_SymStd_COPY_cg_rV_G_L.o BMG2_SymStd_PRECON_diag.o BMG2_SymStd_SETUP_nog.o BMG2_SymStd_UTILS_matvec.o BMG2_SymStd_relax_lines_x.o BMG2_SymStd_restrict.o BMG2_SymStd_OUTPUT_times.o BMG2_SymStd_relax.o BMG2_SymStd_SETUP_MSGGrid.o BMG2_SymStd_SETUP_recip.o BMG2_SymStd_updown.o BMG2_SymStd_SETUP_parts.o BMG2_SymStd_SETUP_PtrLS.o BMG2_SymStd_SOLVE_pcg.o BMG2_SymStd_UTILS_dot_l2.o BMG2_SymStd_SETUP_PtrMSGSo_O BMG2_SymStd_SETUP_MSG.o BMG2_SymStd_PRECON_boxmg.o BMG2_SymStd_UTILS_rV_zero.o BMG2_SymStd_SETUP_PtrWork.o BMG2_SymStd_UTILS_dxpby.o BMG2_SymStd_interp_add.o BMG2_SymStd_SETUP_cg_LU.o BMG2_SymStd_SETUP_ITLI_ex.o BMG2_SymStd_SETUP_space.o BMG2_SymStd_SOLVE_cg_LU.o BMG2_SymStd_SETUP_MSGGridSo_O BMG2_SymStd_SETUP_LS.o BMG2_SymStd_UTILS_zero_times.o BMG2_SymStd_SETUP_cg_parms.o
make[1]: *** [Makefile:121: library] Error 2
make: *** [Makefile:104: makewithflags] Error 2
 
Top