[mpas-developers] question about MPAS build
Michael Duda
duda at ucar.edu
Sat Mar 20 15:02:11 MDT 2010
Hi, Todd.
The current rules in the Makefiles for making .o files from .F
files remove the pre-processed .f90 files; for a temporary
workaround, you could comment out the line in the .F.o rules of
the Makefiles that look like:
$(RM) $*.f90
So the .F.o rule would then look like
.F.o:
$(RM) $@ $*.mod
$(CPP) $(CPPFLAGS) $(CPPINCLUDES) $< > $*.f90
$(FC) $(FFLAGS) -c $*.f90 $(FCINCLUDES)
# $(RM) $*.f90
in src/framework/Makefile, for example.
I think the original reason for removing the pre-processed .f90
files was just to help me avoid making changes to these files,
then running 'make', only to discover that I'd modified an
intermediate source file. I'm open to the idea of changing this,
though, and keeping the .f90 files around until 'make clean' is
run, for example. What do other developers think?
Cheers,
Michael
http://mailman.ucar.edu/mailman/admindb/mpas-developers
On Fri, Mar 19, 2010 at 08:33:51PM -0600, Todd Ringler wrote:
>
> Hi All,
>
> I am trying to debug an error in the ocean model. Here is my traceback:
>
> couloir: /Users/todd/Desktop/MPAS/trunk/mpas > more log.0001.err
> Expanding nVertLevels to 4 by duplicating the first level.
> Using initial conditions supplied in input file
> forrtl: severe (408): fort: (3): Subscript #1 of the array ARRAY has
> value 0 which is less than the lower bound of 1
>
> Image PC Routine Line
> Source
> ocean_model.exe 00000001003DCF5C Unknown Unknown
> Unknown
> ocean_model.exe 00000001003DBA94 Unknown Unknown
> Unknown
> ocean_model.exe 00000001003A72F7 Unknown Unknown
> Unknown
> ocean_model.exe 000000010035138A Unknown Unknown
> Unknown
> ocean_model.exe 00000001003517D7 Unknown Unknown
> Unknown
> ocean_model.exe 0000000100238699 _io_output_mp_out 293
> module_io_output.f90
> ocean_model.exe 0000000100001CCB _subdriver_mp_wri 125
> module_subdriver.f90
> ocean_model.exe 000000010000164C _subdriver_mp_sol 72
> module_subdriver.f90
> ocean_model.exe 0000000100001EE3 _MAIN__ 40
> mpas.f90
> ocean_model.exe 00000001000011BC Unknown Unknown
> Unknown
> ocean_model.exe 0000000100001154 Unknown Unknown
> Unknown
>
>
> but I can not seem to locate the *.f90 file to figure out where the
> error is. Since many of the *.F files have includes, I can't use them
> based on the .f90 line numbers.
>
> Do we keep the processed source files? If so, where are they located?
> If not, ideas on debugging approaches would be appreciated.
>
> Cheers,
> Todd
>
> _______________________________________________
> mpas-developers mailing list
> mpas-developers at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/mpas-developers
More information about the mpas-developers
mailing list