MEGAN 3.1 Error While Running run.mgn2mech.v31.csh

Dear all,

I failed running the mgn2mech in MEGAN v3.1. It didn’t show any error message when running mgn2mech, only showing these as follows. More details could be seen in log.txt.
log.txt (57.4 KB)

forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
mgn2mech 0000000000565804 Unknown Unknown Unknown
libpthread-2.17.s 00002B925D5F55E0 Unknown Unknown Unknown
mgn2mech 0000000000405BBA Unknown Unknown Unknown
mgn2mech 000000000040309E Unknown Unknown Unknown 00002B925D823C05 __libc_start_main Unknown Unknown
mgn2mech 0000000000402FA9 Unknown Unknown Unknown

All of those "Unknown"s aren’ very informative – just that something is happening in mgn2mech, but not where.

To get more information, re-compile everything for traceback – use flags borrowed from the appropriate I/O API *Makeinclude.dbg to see how to do this.

I had the same problem as you, could you please help me if you solved it now?

no, can’t solve it yet. I’m trying to use mega2.1

Thank you for your time!


I’m curious if the issue has indeed been resolved. If not, please make the following modifications to the program in the file mgn2mech.F:

  1. In line 161, replace “nmpsp” with “s”.

  2. In line 168, also replace “nmpsp” with “s”.

After making these changes, recompile the package and then try running the program again. This should address the bug. BTW, you may move on to MEGANv3.2.

       tmper(nmpsp,:,:) = inper(nmpmg,:,:) * EF(nmpmg,:,:)
 &                          * effs_all(nmpsp)

     ELSEIF ( nmpmg .EQ. INO ) then

!!-----------------NO Stuff-----------------------
! GAMNO is emission activity factor
tmper(nmpsp,:,:slight_smile: = GAMNO(:,:slight_smile: * EF(INO,:,:slight_smile:
& * effs_all(nmpsp)

Hi Jason_Hu
Do you have input files for MEGAN3.1 preprocessor? It says I don’t have access to the file in google driver and I need these files to run MEGAN3.1 preprocessor. Thank you.