Openmp and Fortran, crashing code -


this related previous question. trying parallelize code mixed syntax (f77 , f90)

i've added 1 of many routines portion in code

 !$omp parallel shared (xdif,cdiff, dg,bfvisc,r,ro,xm ) private ( l )   !$omp  l=2,n-1         xdif(l)=cdiff(l)*fjc+(dg(l)+bfvisc(l))*  &           (4.d0*pi*r(l)**2*ro(l)/xm(n))**2   enddo   !$omp end  !$omp end parallel 

after compiling (using -fopenmp) code runs few seconds , error i'm getting is: segmentation fault (core dumped)

i didn't use module omp_lib (since suggested in answer previous question) try (using call omp_set_num_threads(4) before first line). , both ways have same problem.

what can do?

i've been advised print output flags -g -fbacktrace -fcheck=all -wall. here is:

 @ line 2828 of file mainii.f  fortran runtime error: index '0' of dimension 1 of array 'l1mlos' below lower bound of 1 


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -