FCDEBUG = # -g $(FCNOOPT) -traceback
Hi Rajesh,WRF is compiled with the traceback option.if you open the rsl.error.0009 of the previous email you can see the backtrace:STARTING WITH BACKGROUND CHEMISTRY Subroutine input_chem_profile: At line 846 of file module_input_chem_data.f90 Fortran runtime error: Index '0' of dimension 4 of array 'stor' below lower bound of 1 Error termination. Backtrace: #0 0x14af89775131 in ??? #1 0x14af89775cd9 in ??? #2 0x14af897760bb in ??? #3 0x35b5ecb in __module_input_chem_data_MOD_make_chem_profile at /hpc/home/join22/WRF-4.1.3/chem/module_input_chem_data.f90:846 #4 0x35c5882 in __module_input_chem_data_MOD_input_chem_profile at /hpc/home/join22/WRF-4.1.3/chem/module_input_chem_data.f90:765 #5 0x406eba in med_sidata_input_ at /hpc/home/join22/WRF-4.1.3/main/real_em.f90:520 #6 0x42bf54 in real_data at /hpc/home/join22/WRF-4.1.3/main/real_em.f90:144 #7 0x42c034 in main at /hpc/home/join22/WRF-4.1.3/main/real_em.f90:5I opened the module_input_chem_data, but I cloudnt’t understand why the segmetation happens.Thanks———
Ing. Mauro Morichetti
MRCMRA84P20L366Y
C/da Vanni n. 13 62010, Mogliano (MC)
+39 388 4729670
morichet...@gmail.com
--
To unsubscribe from this topic, visit https://groups.google.com/a/ucar.edu/d/topic/wrf-chem/m9xmwfl_iwY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wrf-chem+u...@ucar.edu.
847 !UMM = Update Mauro Morichetti
848 !print*,'iref',iref
849 DO l=2, numgas
850 is=iref(l-1)
851 DO j=ny1,ny2
852 DO k=nz1,nz2
853 DO i=nx1,nx2
854 chem(i,k,j,l)=fracref(l-1)*stor(i,k,j,is) * 1.E6
855 ENDDO
856 ENDDO
857 ENDDO
858 ENDDO
______________________________________________
I looked trough the code and I found that "ref" is defined and associated to a precise value, for different subroutines (i.e., setup_gasprofile_map_saprcnov, setup_gasprofile_map_radm_racm...). For the "SUBROUTINE make_chem_profile" it is defined, but it has not a value associated. So I copied the lines 411 to 413 (the iref for SUBROUTINE setup_gasprofile_map_radm_racm)411 iref(:) = 7 !default value
412 iref(1:41) = (/12,19,2,2,1,3,4,9,8,5,5,32,6,6,6,30,30,10,26,13,11,6,6, &
413 14,15,15,23,23,32,16,23,31,17,23,23,23,23,23,7,28,29/)
to:797 !UMM = Update Mauro Morichetti
798 iref(:) = 7 !default value
799 iref(1:41) = (/12,19,2,2,1,3,4,9,8,5,5,32,6,6,6,30,30,10,26,13,11,6,6, &
800 14,15,15,23,23,32,16,23,31,17,23,23,23,23,23,7,28,29/)
_________________________________________________