[FLASH-USERS] [EXT] Mismatch errors while compiling a problem

sasharos at campus.technion.ac.il sasharos at campus.technion.ac.il
Sat May 8 18:27:49 EDT 2021


Hi Marissa,

Thanks for your help!

Adding -fallow-argument-mismatch into a Makefile.h doesn't change the compilation failure. I'm a bit puzzled with this because initialization without -debug ends up with compiled problem which runs good.

best,
Alexander

________________________________
From: Marissa B. P. Adams <madams at pas.rochester.edu>
Sent: Saturday, May 8, 2021 5:49 PM
To: Alexander Rososhek <sasharos at campus.technion.ac.il>
Cc: flash-users at flash.uchicago.edu <flash-users at flash.uchicago.edu>
Subject: Re: [EXT] [FLASH-USERS] Mismatch errors while compiling a problem

Hi Alexander,

I think you can simply remedy this error by adding the appropriate flags to your Makefile.h. If your Makefile.h, add the following flag to the Fortran flags (FFLAGS_TEST, FFLAGS_DEBUG, FFLAGS_OPT):  -fallow-argument-mismatch

Please let us know if that helps with the issue. If you run into future make errors that don't pertain to exactly something you've coded into your version of FLASH, it probably is fixed with a flag, e.x. uninitialized functions, etc.

Best,
Marissa

On Sat, May 8, 2021 at 10:05 AM sasharos at campus.technion.ac.il<mailto:sasharos at campus.technion.ac.il> <sasharos at campus.technion.ac.il<mailto:sasharos at campus.technion.ac.il>> wrote:
Hello flash-users,

I'm new to FLASH simulation and I have a problem at the initial step. I'm running Arch Linux on my pc and packages like mpich and hdf5 I installed from the AUR repository. Now the first problem I had was that "./setup Sedov -auto" doesn't work and "python2 setup_alt Sedov -auto" must be used for Sedov problem initiation. I believe this is because some compatibility issues but as long as the Sedov problem is initiated I think I can proceed.
The next problem occured when I tried the following: "python2 setup_alt Sedov -auto -debug". In such a manner the Sedov problem is initiated but failed to compile with a lot of mistmatch error message. Looking back to the initiation by "python2 setup_alt Sedov -auto" I noticed a lot of error mismatch error messages like this one:

"...
/opt/mpich/bin/mpif90 -ggdb -c -O2 -fdefault-real-8 -fdefault-double-8 -Wuninitialized  -DMAXBLOCKS=1000 -DNXB=8 -DNYB=8 -DNZB=1 -DN_DIM=2 mpi_amr_check_derefine.F90
mpi_amr_check_derefine.F90:150:33:

   53 |                Call MPI_IRECV(refine_par(i),                           &
      |                              2
......
  150 |                   Call MPI_IRECV(nodetype_recv(isg),                   &
      |                                 1
Warning: Type mismatch between actual argument at (1) and actual argument at (2) (INTEGER(4)/LOGICAL(4)).
..."

I would appreciate any help with this issue.
Thanks!

Alexander Rososhek


External e-mail, be judicious when opening attachments or links
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20210508/243dd84e/attachment-0001.htm>


More information about the flash-users mailing list