[mpich-discuss] linking MPI

Carolina Carneiro carol07 at astro.ufrj.br
Mon Oct 24 11:33:50 CDT 2011


Hi,

I'm having problems to use the command make to compile a makefile. I'm
trying to link the makefile to the MPI library, but it isn't working.
Several errors are appearing:

root at carol-HP-Pavilion-dv5-Notebook-PC:/home/carol/mocassin/mocassin.2.02.69#
make mocassin
/opt/intel/composer_xe_2011_sp1.6.233/composer_xe_2011_sp1.6.233/bin/intel64/ifort
-O5 -o mocassin source/infnan.f90 source/constants_mod.f90
source/vector_mod.f90 source/common_mod.f90 source/interpolation_mod.f90
source/set_input_mod.f90 source/hydro_mod.f90 source/ph_mod.f90
source/composition_mod.f90 source/continuum_mod.f90
source/ionization_mod.f90 source/pathIntegration_mod.f90 source/grid_mod.f90
source/dust_mod.f90 source/emission_mod.f90 source/photon_mod.f90
source/update_mod.f90 source/output_mod.f90 source/iteration_mod.f90
source/mocassin.f90  -l/home/carol/mocassin/mpich2install/include
source/common_mod.f90(240): warning #6379: The structure contains one or
more misaligned fields.   [GRID_TYPE]
    type grid_type             ! derived grid type
---------^
source/grid_mod.f90(491): error #5102: Cannot open include file 'mpif.h'
        include 'mpif.h'
----------------^
compilation aborted for source/grid_mod.f90 (code 1)
source/dust_mod.f90(17): error #5102: Cannot open include file 'mpif.h'
      include 'mpif.h'
--------------^
source/dust_mod.f90(97): error #6404: This name does not have a type, and
must have an explicit type.   [MPI_REAL]
&                             mpi_real, mpi_sum, mpi_comm_world, ierr)
------------------------------^
source/dust_mod.f90(97): error #6404: This name does not have a type, and
must have an explicit type.   [MPI_SUM]
&                             mpi_real, mpi_sum, mpi_comm_world, ierr)
----------------------------------------^
source/dust_mod.f90(97): error #6404: This name does not have a type, and
must have an explicit type.   [MPI_COMM_WORLD]
&                             mpi_real, mpi_sum, mpi_comm_world, ierr)
-------------------------------------------------^
compilation aborted for source/dust_mod.f90 (code 1)
source/emission_mod.f90(8): error #7013: This module file was not generated
by any release of this compiler.   [GRID_MOD]
    use grid_mod
--------^
source/emission_mod.f90(217): error #6404: This name does not have a type,
and must have an explicit type.   [GETVOLUME]
        dV = getVolume(grid,ix,iy,iz)
-------------^
source/emission_mod.f90(536): error #6404: This name does not have a type,
and must have an explicit type.   [HLEVXSECP]
            phXSecHI =  xSecArray(i-HIPnuP+1+HlevXSecP(1)-1)
---------------------------------------------^
source/emission_mod.f90(545): error #6404: This name does not have a type,
and must have an explicit type.   [HEISINGXSECP]
                phXSecHeI = xSecArray(i-HeIPnuP+1+HeISingXSecP(1)-1)
--------------------------------------------------^
source/emission_mod.f90(553): error #6404: This name does not have a type,
and must have an explicit type.   [HEIIXSECP]
                    phXSecHeII = xSecArray(i-HeIIPnuP+1+HeIIXSecP(1)-1)
--------------------------------------------------------^
source/emission_mod.f90(3109): remark #8291: Recommended relationship
between field width 'W' and the number of fractional digits 'D' in this edit
descriptor is 'W>=D+7'.

read(unit=19,fmt='(A2,I2,1x,A23,11x,A7,1x,F9.4,7x,F9.6,4x,F12.6,1x,I2,1x,I2,1x,E8.2,1x,E8.2,1x,I2)',
&
-----------------------------------------------------------------------------------------^
source/emission_mod.f90(3109): remark #8291: Recommended relationship
between field width 'W' and the number of fractional digits 'D' in this edit
descriptor is 'W>=D+7'.

read(unit=19,fmt='(A2,I2,1x,A23,11x,A7,1x,F9.4,7x,F9.6,4x,F12.6,1x,I2,1x,I2,1x,E8.2,1x,E8.2,1x,I2)',
&
-------------------------------------------------------------------------------------------------^
compilation aborted for source/emission_mod.f90 (code 1)
source/photon_mod.f90(9): error #7013: This module file was not generated by
any release of this compiler.   [GRID_MOD]
    use grid_mod
--------^
compilation aborted for source/photon_mod.f90 (code 1)
source/update_mod.f90(8): error #7013: This module file was not generated by
any release of this compiler.   [EMISSION_MOD]
    use emission_mod
--------^
source/update_mod.f90(234): error #6404: This name does not have a type, and
must have an explicit type.   [HLEVXSECP]
                     phXSec  = xSecArray(j-IPnuP+1+HlevXSecP(1)-1)
---------------------------------------------------^
source/update_mod.f90(238): error #6404: This name does not have a type, and
must have an explicit type.   [HEISINGXSECP]
                     phXSec  = xSecArray(j-IPnuP+1+HeISingXSecP(1)-1)
---------------------------------------------------^
source/update_mod.f90(242): error #6404: This name does not have a type, and
must have an explicit type.   [HEIIXSECP]
                     phXSec  = xSecArray(j-IPnuP+1+HeIIXSecP(1)-1)
---------------------------------------------------^
source/update_mod.f90(1304): error #6632: Keyword arguments are invalid
without an explicit interface.   [FILE_NAME]
                         call equilibrium(file_name=dataFile(elem, ion), &
------------------------------------------^
source/update_mod.f90(1305): error #6632: Keyword arguments are invalid
without an explicit interface.   [IONDENUP]

&ionDenUp=ionDenUsed(elementXref(elem),ion+1)/&
-------------------------------^
source/update_mod.f90(1306): error #6632: Keyword arguments are invalid
without an explicit interface.   [TE]
                              &ionDenUsed(elementXref(elem),ion),
Te=TeUsed,&
------------------------------------------------------------------^
source/update_mod.f90(1307): error #6632: Keyword arguments are invalid
without an explicit interface.   [NE]
                              &Ne=NeUsed, FlineEm=forbiddenLinesLarge(&
-------------------------------^
source/update_mod.f90(1307): error #6632: Keyword arguments are invalid
without an explicit interface.   [FLINEEM]
                              &Ne=NeUsed, FlineEm=forbiddenLinesLarge(&
------------------------------------------^
source/update_mod.f90(1310): error #6632: Keyword arguments are invalid
without an explicit interface.   [FILE_NAME]
                         call equilibrium(file_name=dataFile(elem, ion), &
------------------------------------------^
source/update_mod.f90(1311): error #6632: Keyword arguments are invalid
without an explicit interface.   [IONDENUP]
                              &ionDenUp=0., Te=TeUsed,&
-------------------------------^
source/update_mod.f90(1311): error #6632: Keyword arguments are invalid
without an explicit interface.   [TE]
                              &ionDenUp=0., Te=TeUsed,&
--------------------------------------------^
source/update_mod.f90(1312): error #6632: Keyword arguments are invalid
without an explicit interface.   [NE]
                              &Ne=NeUsed, FlineEm=forbiddenLinesLarge(&
-------------------------------^
source/update_mod.f90(1312): error #6632: Keyword arguments are invalid
without an explicit interface.   [FLINEEM]
                              &Ne=NeUsed, FlineEm=forbiddenLinesLarge(&
------------------------------------------^
source/update_mod.f90(2033): error #6404: This name does not have a type,
and must have an explicit type.   [RESLINE]
               do imul = 1, resLine(iL)%nmul
----------------------------^
source/update_mod.f90(2033): error #6837: The leftmost part-ref in a
data-ref can not be a function reference.   [RESLINE]
               do imul = 1, resLine(iL)%nmul
----------------------------^
source/update_mod.f90(2033): error #6158: The structure-name is invalid or
is missing.   [RESLINE]
               do imul = 1, resLine(iL)%nmul
----------------------------^
source/update_mod.f90(2034): error #6837: The leftmost part-ref in a
data-ref can not be a function reference.   [RESLINE]
                  if (resLine(iL)%elem==1) then
----------------------^
source/update_mod.f90(2034): error #6158: The structure-name is invalid or
is missing.   [RESLINE]
                  if (resLine(iL)%elem==1) then
----------------------^
source/update_mod.f90(2034): internal error: Please visit '
http://www.intel.com/software/products/support' for assistance.
                  if (resLine(iL)%elem==1) then
^
[ Aborting due to internal error. ]
compilation aborted for source/update_mod.f90 (code 1)
source/output_mod.f90(6): error #7013: This module file was not generated by
any release of this compiler.   [EMISSION_MOD]
    use emission_mod
--------^
source/output_mod.f90(342): error #6404: This name does not have a type, and
must have an explicit type.   [LOG10TE]
                       log10Te         = log10(TeUsed)
-----------------------^
source/output_mod.f90(343): error #6404: This name does not have a type, and
must have an explicit type.   [LOG10NE]
                       log10Ne         = log10(NeUsed)
-----------------------^
source/output_mod.f90(344): error #6404: This name does not have a type, and
must have an explicit type.   [SQRTEUSED]
                       sqrTeUsed = sqrt(TeUsed)
-----------------------^
source/output_mod.f90(370): error #6410: This name has not been declared as
an array or a function.   [HIRECLINES]
                                HIRecLines(iup, ilow) = &
--------------------------------^
source/output_mod.f90(370): internal error: Please visit '
http://www.intel.com/software/products/support' for assistance.
                                HIRecLines(iup, ilow) = &
^
[ Aborting due to internal error. ]
compilation aborted for source/output_mod.f90 (code 1)
source/iteration_mod.f90(35): error #5102: Cannot open include file 'mpif.h'
           include 'mpif.h'
-------------------^
source/iteration_mod.f90(7): error #7013: This module file was not generated
by any release of this compiler.   [EMISSION_MOD]
    use emission_mod
--------^
source/iteration_mod.f90(103): error #6404: This name does not have a type,
and must have an explicit type.   [BJUMPTEMP]
                 BjumpTemp = 0.
-----------------^
source/iteration_mod.f90(153): error #6404: This name does not have a type,
and must have an explicit type.   [MPI_REAL]
                      & mpi_real, mpi_sum, mpi_comm_world, ierr)
------------------------^
source/iteration_mod.f90(153): error #6404: This name does not have a type,
and must have an explicit type.   [MPI_SUM]
                      & mpi_real, mpi_sum, mpi_comm_world, ierr)
----------------------------------^
source/iteration_mod.f90(153): error #6404: This name does not have a type,
and must have an explicit type.   [MPI_COMM_WORLD]
                      & mpi_real, mpi_sum, mpi_comm_world, ierr)
-------------------------------------------^
source/iteration_mod.f90(477): error #6404: This name does not have a type,
and must have an explicit type.   [TOTALESCAPED]
           totalEscaped = 0.
-----------^
source/iteration_mod.f90(543): error #6632: Keyword arguments are invalid
without an explicit interface.   [ISTAR]
                                call energyPacketDriver(iStar=0,n=load,
grid=grid(1:nGrids), &
--------------------------------------------------------^
source/iteration_mod.f90(543): error #6632: Keyword arguments are invalid
without an explicit interface.   [N]
                                call energyPacketDriver(iStar=0,n=load,
grid=grid(1:nGrids), &
----------------------------------------------------------------^
source/iteration_mod.f90(543): error #6632: Keyword arguments are invalid
without an explicit interface.   [GRID]
                                call energyPacketDriver(iStar=0,n=load,
grid=grid(1:nGrids), &
------------------------------------------------------------------------^
source/iteration_mod.f90(544): error #6632: Keyword arguments are invalid
without an explicit interface.   [GPLOC]
                                     & gpLoc=gpLoc, cellLoc=cellLoc)
---------------------------------------^
source/iteration_mod.f90(544): error #6632: Keyword arguments are invalid
without an explicit interface.   [CELLLOC]
                                     & gpLoc=gpLoc, cellLoc=cellLoc)
----------------------------------------------------^
source/iteration_mod.f90(546): error #6632: Keyword arguments are invalid
without an explicit interface.   [ISTAR]
                                call energyPacketDriver(iStar=0,n=load,
grid=grid(1:nGrids), &
--------------------------------------------------------^
source/iteration_mod.f90(546): error #6632: Keyword arguments are invalid
without an explicit interface.   [N]
                                call energyPacketDriver(iStar=0,n=load,
grid=grid(1:nGrids), &
----------------------------------------------------------------^
source/iteration_mod.f90(546): error #6632: Keyword arguments are invalid
without an explicit interface.   [GRID]
                                call energyPacketDriver(iStar=0,n=load,
grid=grid(1:nGrids), &
------------------------------------------------------------------------^
source/iteration_mod.f90(547): error #6632: Keyword arguments are invalid
without an explicit interface.   [GPLOC]
                                     & gpLoc=gpLoc, cellLoc=cellLoc)
---------------------------------------^
source/iteration_mod.f90(547): error #6632: Keyword arguments are invalid
without an explicit interface.   [CELLLOC]
                                     & gpLoc=gpLoc, cellLoc=cellLoc)
----------------------------------------------------^
source/iteration_mod.f90(574): error #6404: This name does not have a type,
and must have an explicit type.   [MPI_INTEGER]
                   & mpi_integer, mpi_sum, mpi_comm_world, ierr)
---------------------^
compilation aborted for source/iteration_mod.f90 (code 1)
source/mocassin.f90(43): error #5102: Cannot open include file 'mpif.h'
    include 'mpif.h'
------------^
source/mocassin.f90(34): error #7002: Error in opening the compiled module
file.  Check INCLUDE paths.   [DUST_MOD]
    use dust_mod
--------^
source/mocassin.f90(35): error #7013: This module file was not generated by
any release of this compiler.   [GRID_MOD]
    use grid_mod
--------^
source/mocassin.f90(55): error #6404: This name does not have a type, and
must have an explicit type.   [MPI_COMM_WORLD]
    call mpi_comm_rank(MPI_COMM_WORLD, taskid, ierr)
-----------------------^
compilation aborted for source/mocassin.f90 (code 1)
make: *** [mocassin] Error 1

The makefile is this:

source1  = source/infnan.f90 source/constants_mod.f90 source/vector_mod.f90
source/common_mod.f90 source/interpolation_mod.f90 \
    source/set_input_mod.f90 source/hydro_mod.f90 source/ph_mod.f90
source/composition_mod.f90 \
    source/continuum_mod.f90 source/ionization_mod.f90
source/pathIntegration_mod.f90 \
    source/grid_mod.f90 source/dust_mod.f90 source/emission_mod.f90
source/photon_mod.f90  \
    source/update_mod.f90 \
    source/output_mod.f90 source/iteration_mod.f90 source/mocassin.f90

source2  = source/infnan.f90 source/constants_mod.f90 source/vector_mod.f90
source/common_mod.f90 source/interpolation_mod.f90 \
    source/set_input_mod.f90 source/hydro_mod.f90 source/ph_mod.f90
source/composition_mod.f90 \
    source/continuum_mod.f90 source/ionization_mod.f90
source/pathIntegration_mod.f90 \
    source/grid_mod.f90 source/dust_mod.f90 source/emission_mod.f90
source/photon_mod.f90  \
    source/update_mod.f90 \
    source/output_mod.f90 source/iteration_mod.f90 source/mocassinWarm.f90

source3  = source/infnan.f90 source/constants_mod.f90 source/vector_mod.f90
source/common_mod.f90 source/interpolation_mod.f90 \
    source/set_input_mod.f90 source/hydro_mod.f90 source/ph_mod.f90
source/composition_mod.f90 \
    source/continuum_mod.f90 source/ionization_mod.f90
source/pathIntegration_mod.f90 \
    source/grid_mod.f90 source/dust_mod.f90 source/emission_mod.f90
source/photon_mod.f90  \
    source/update_mod.f90 \
    source/output_mod.f90 source/iteration_mod.f90 source/mocassinOutput.f90


source4  = source/infnan.f90 source/constants_mod.f90 source/vector_mod.f90
source/common_mod.f90 source/interpolation_mod.f90 \
    source/set_input_mod.f90 source/hydro_mod.f90 source/ph_mod.f90
source/composition_mod.f90 \
    source/continuum_mod.f90 source/ionization_mod.f90
source/pathIntegration_mod.f90 \
    source/grid_mod.f90 source/dust_mod.f90 source/emission_mod.f90
source/photon_mod.f90  \
    source/update_mod.f90 \
    source/output_mod.f90 source/iteration_mod.f90 source/mocassinPlot.f90

F90  =
/opt/intel/composer_xe_2011_sp1.6.233/composer_xe_2011_sp1.6.233/bin/intel64/ifort
LIBS = -l/home/carol/mocassin/mpich2install/include
OPT1 = -O5
OPT2 = -O5

mocassin:
    $(F90) $(OPT1) -o mocassin $(source1) $(LIBS)

mocassinWarm:
    $(F90) $(OPT1) -o mocassinWarm $(source2) $(LIBS)

mocassinOutput:
    $(F90) $(OPT2) -o mocassinOutput $(source3) $(LIBS)

mocassinPlot:
    $(F90) $(OPT2) -o mocassinPlot $(source4) $(LIBS)

clean:
    /bin/rm *.o *~ *.mod mocassin mocassinWarm mocassinOutput mocassinPlot

Does someone have a clue of what is the problem?

Thanks,
Carolina.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20111024/dfa1930f/attachment-0001.htm>


More information about the mpich-discuss mailing list