Hi,
I inherited a 40k line fortran code, and when I enable OMP it changes its behaviour. And now I am kind of lost what to do. I enabled -check all, which causes my code to crash. Enabling different checks, I get the following for me perculiar behaviour,
#### no change:
# F90FLAGS+= -check arg_temp_created,bounds,format
# F90FLAGS+= -check arg_temp_created,bounds,format,output_conversion
#### problematic (change results to the "better"?):
# F90FLAGS+= -check arg_temp_created,bounds,format,output_conversion,uninit
#### problematic (change results to the worse):
# F90FLAGS+= -check arg_temp_created,bounds,format,output_conversion,pointer
#### crash!:
# F90FLAGS+= -check arg_temp_created,bounds,format,output_conversion,uninit,pointer
so, only adding uninit and pointer changes something. Putting both together creates nan's.
I assume that my variables are beeing overwritten somewhere, however, the check bounds does not come up with anything - hence, are there some ways that check bounds does not pick up an error?
All the subroutines, etc are put in modules.
regards,
Mike



