<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic I have no problems in in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unable-to-compile-f90-files-multiline-string-constant/m-p/1158134#M142170</link>
    <description>&lt;P&gt;I have no problems in compiling the code with either ifort, nor gfortran, nor gfortran-based mpifort.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Mar 2018 07:01:19 GMT</pubDate>
    <dc:creator>Juergen_R_R</dc:creator>
    <dc:date>2018-03-22T07:01:19Z</dc:date>
    <item>
      <title>unable to compile f90 files - multiline string constant/continuation lines</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unable-to-compile-f90-files-multiline-string-constant/m-p/1158133#M142169</link>
      <description>&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Dear All,&lt;BR /&gt;
	&lt;BR /&gt;
	I am trying to compile a fortran code using intel 17 compilers and facing issues.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 1em;"&gt;1. using the make utility&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:bash;"&gt;user@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; FC='mpiifort' make
cc -E  -DDM_PARALLEL  cmpcomm.F  &amp;gt; cmpcomm.f90
mpiifort -o cmpcomm.o -c -I../io_int  cmpcomm.f90
cmpcomm.F(89): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
     &amp;amp;  'CMP_INIT: illegal value of kind_REAL='
-----------------------------------------------^
cmpcomm.F(94): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
     &amp;amp;  'CMP_INIT: illegal value of kind_INTEGER='
--------------------------------------------------^
cmpcomm.F(154): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
     &amp;amp;
---------------^
cmpcomm.F(352): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , )
     &amp;amp;
----------^
cmpcomm.F(354): error #5082: Syntax error, found ',' when expecting one of: =&amp;gt; = . [ % ( :
     &amp;amp;    process_rank_local,component_master_rank_local
----------------------------^
cmpcomm.F(366): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , )
     &amp;amp;
----------^
cmpcomm.F(351): error #7094: Unmatched parentheses within a character format specifier.   ['("*** CMP_SEND: process_rank_local=",i4," ]
     &amp;amp;    '("*** CMP_SEND: process_rank_local=",i4,"  ***"/'            &amp;amp;
----------------------------------------------------------^
cmpcomm.F(354): error #6793: The POINTER attribute is required.   [PROCESS_RANK_LOCAL]
     &amp;amp;    process_rank_local,component_master_rank_local
----------^
cmpcomm.F(365): error #7094: Unmatched parentheses within a character format specifier.   ['("*** CMP_SEND: illegal value of FlexLev",]
     &amp;amp;     '("*** CMP_SEND: illegal value of FlexLev",i9/'              &amp;amp;
--------------------------------------------------------^
cmpcomm.F(410): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , )
     &amp;amp;
----------^
cmpcomm.F(412): error #5082: Syntax error, found ',' when expecting one of: =&amp;gt; = . [ % ( :
     &amp;amp;    process_rank_local,component_master_rank_local
----------------------------^
cmpcomm.F(424): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , )
     &amp;amp;
----------^
cmpcomm.F(409): error #7094: Unmatched parentheses within a character format specifier.   ['("*** CMP_SEND: process_rank_local=",i4," ]
     &amp;amp;      '("*** CMP_SEND: process_rank_local=",i4,"  ***"/'          &amp;amp;
------------------------------------------------------------^
cmpcomm.F(412): error #6793: The POINTER attribute is required.   [PROCESS_RANK_LOCAL]
     &amp;amp;    process_rank_local,component_master_rank_local
----------^
cmpcomm.F(423): error #7094: Unmatched parentheses within a character format specifier.   ['("*** CMP_SEND: illegal value of FlexLev",]
     &amp;amp;    '("*** CMP_SEND: illegal value of FlexLev",i9/ '              &amp;amp;
-------------------------------------------------------^
cmpcomm.F(471): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , )
     &amp;amp;
----------^
cmpcomm.F(473): error #5082: Syntax error, found ',' when expecting one of: =&amp;gt; = . [ % ( :
     &amp;amp;    process_rank_local,component_master_rank_local
----------------------------^
cmpcomm.F(485): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , )
     &amp;amp;
----------^
cmpcomm.F(470): error #7094: Unmatched parentheses within a character format specifier.   ['("*** CMP_SEND: process_rank_local=",i4," ]
     &amp;amp;    '("*** CMP_SEND: process_rank_local=",i4,"  ***"/ '           &amp;amp;
----------------------------------------------------------^
cmpcomm.F(473): error #6793: The POINTER attribute is required.   [PROCESS_RANK_LOCAL]
     &amp;amp;    process_rank_local,component_master_rank_local
----------^
cmpcomm.F(484): error #7094: Unmatched parentheses within a character format specifier.   ['("*** CMP_SEND: illegal value of FlexLev",]
     &amp;amp;    '("*** CMP_SEND: illegal value of FlexLev",i9/ '              &amp;amp;
-------------------------------------------------------^
cmpcomm.F(530): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , )
     &amp;amp;
----------^
cmpcomm.F(532): error #5082: Syntax error, found ',' when expecting one of: =&amp;gt; = . [ % ( :
     &amp;amp;    process_rank_local,component_master_rank_local
----------------------------^
cmpcomm.f90(1165): catastrophic error: Too many errors, exiting
compilation aborted for cmpcomm.f90 (code 1)
Makefile:19: recipe for target 'cmpcomm.o' failed
make: *** [cmpcomm.o] Error 1&lt;/PRE&gt;

	&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;for a start , i tried compiling files individually,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:bash;"&gt;user1@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; cc -E  -DDM_PARALLEL  cmpcomm.F  &amp;gt; cmpcomm.f90

now, on attempting compilation:
user1@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; mpiifort -c cmpcomm.f90
cmpcomm.F(89): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
     &amp;amp;  'CMP_INIT: illegal value of kind_REAL='
-----------------------------------------------^
cmpcomm.F(94): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
     &amp;amp;  'CMP_INIT: illegal value of kind_INTEGER='
--------------------------------------------------^
cmpcomm.F(154): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
     &amp;amp;
---------------^&lt;/PRE&gt;
&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;I have attached the original file (cmpcomm_original.F.txt) with which i am facing issues.&lt;BR /&gt;
	&amp;nbsp;&lt;/SPAN&gt;I made some changes in the original source code (attached - cmpcomm_modified.F.txt) . On compiling the modified file&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;-&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:bash;"&gt;user1@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn_modified&amp;gt; cc -E  -DDM_PARALLEL  cmpcomm.F  &amp;gt; cmpcomm.f90
No supported cpu target is set, CRAY_CPU_TARGET=x86-64 will be used.
Load a valid targeting module or set CRAY_CPU_TARGET
user1@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn_modifies&amp;gt; mpiifort -c cmpcomm.f90
user1@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn_modifies&amp;gt; echo $?
0&lt;/PRE&gt;

	&lt;P&gt;Issue is that there are multiple such source files, example -&amp;nbsp;&lt;/P&gt;

	&lt;PRE class="brush:bash;" style="font-size: 13.008px;"&gt;user1@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn_modified&amp;gt; mpiifort  atm_comm.f90&lt;/PRE&gt;

	&lt;PRE class="brush:bash;"&gt;atm_comm.F(156): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
      call ATM_ANNOUNCE('back from CMP_INTRO, VerbLev='
-------------------------------------------------------^
atm_comm.F(164): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
      call ATM_ANNOUNCE('back from CMP_INTEGER_RECV, OM spec is '
-----------------------------------------------------------------^
atm_comm.F(171): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
      call ATM_ANNOUNCE('back from CMP_INTEGER_RECV, WM id is '
---------------------------------------------------------------^
atm_comm.F(193): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
        call ATM_ANNOUNCE('AM is standalone: Ocean_spec=1, NSF=4'
-----------------------------------------------------------------^
atm_comm.F(194): error #5082: Syntax error, found '&amp;amp;' when expecting one of: &amp;lt;LABEL&amp;gt; &amp;lt;END-OF-STATEMENT&amp;gt; ; TYPE INTEGER REAL COMPLEX BYTE CHARACTER CLASS DOUBLE ...
     &amp;amp;  ' assigned (as if for POM coupling)',2)
--------^
atm_comm.F(194): error #5276: Unbalanced parentheses
     &amp;amp;  ' assigned (as if for POM coupling)',2)
----------------------------------------------^
atm_comm.F(194): error #5082: Syntax error, found ')' when expecting one of: , &amp;lt;END-OF-STATEMENT&amp;gt; ;
     &amp;amp;  ' assigned (as if for POM coupling)',2)
----------------------------------------------^
atm_comm.F(199): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
      call ATM_ANNOUNCE('back from CMP_INTEGER_RECV, ia2o is '
--------------------------------------------------------------^&lt;/PRE&gt;

	&lt;P&gt;&lt;STRONG&gt;Q: &lt;/STRONG&gt;Am i missing out on any compilation flag which is causing issues with the original code ?.&lt;BR /&gt;
		Please let me know if any further information is required from my end.&lt;/P&gt;
&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Eagerly awaiting your reply.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Mar 2018 06:47:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unable-to-compile-f90-files-multiline-string-constant/m-p/1158133#M142169</guid>
      <dc:creator>psing51</dc:creator>
      <dc:date>2018-03-22T06:47:30Z</dc:date>
    </item>
    <item>
      <title>I have no problems in</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unable-to-compile-f90-files-multiline-string-constant/m-p/1158134#M142170</link>
      <description>&lt;P&gt;I have no problems in compiling the code with either ifort, nor gfortran, nor gfortran-based mpifort.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 07:01:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unable-to-compile-f90-files-multiline-string-constant/m-p/1158134#M142170</guid>
      <dc:creator>Juergen_R_R</dc:creator>
      <dc:date>2018-03-22T07:01:19Z</dc:date>
    </item>
    <item>
      <title>Hi ,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unable-to-compile-f90-files-multiline-string-constant/m-p/1158135#M142171</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I retried (with mpiifort as preprocessor), i got same error message.&lt;/P&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:bash;"&gt;user1@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; mpiifort -E  -DDM_PARALLEL  cmpcomm.F  &amp;gt; cmpcomm.f90
user1@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; mpiifort  cmpcomm.f90
cmpcomm.F(148): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , &amp;lt;REAL_KIND_CON&amp;gt; &amp;lt;REAL_CONSTANT&amp;gt; &amp;lt;DBLPRC_CONSTANT&amp;gt; &amp;lt;DBLPRC_KIND_CON&amp;gt; &amp;lt;QUAPRC_CONSTANT&amp;gt; ...
      call MPI_RECV(ibuffer,ibuffer_size,MPI_INTEGER,MPI_ANY_SOURCE,tag,
------------------------------------------------------------------------^
cmpcomm.F(149): error #5276: Unbalanced parentheses
     &amp;amp;MPI_COMM_WORLD,status,ierr)
--------------------------------^
cmpcomm.F(149): error #5082: Syntax error, found '&amp;amp;' when expecting one of: &amp;lt;LABEL&amp;gt; &amp;lt;END-OF-STATEMENT&amp;gt; ; TYPE INTEGER REAL COMPLEX BYTE CHARACTER CLASS DOUBLE ...
     &amp;amp;MPI_COMM_WORLD,status,ierr)
------^
cmpcomm.F(149): error #5082: Syntax error, found ')' when expecting one of: , ( ::
     &amp;amp;MPI_COMM_WORLD,status,ierr)
--------------------------------^
cmpcomm.F(153): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , :: : )
        call wrf_debug(2,'CMP_INIT: stopped, rcvd ibuffer(1) value '
------------------------------------------------------------------------^
cmpcomm.F(154): error #5082: Syntax error, found '&amp;amp;' when expecting one of: &amp;lt;LABEL&amp;gt; &amp;lt;END-OF-STATEMENT&amp;gt; ; TYPE INTEGER REAL COMPLEX BYTE CHARACTER CLASS DOUBLE ...
     &amp;amp;         //'is not C id: ',ibuffer(1))
---------------^
cmpcomm.F(154): error #5276: Unbalanced parentheses
     &amp;amp;         //'is not C id: ',ibuffer(1))
-------------------------------------------^
cmpcomm.F(158): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , &amp;lt;REAL_KIND_CON&amp;gt; &amp;lt;REAL_CONSTANT&amp;gt; &amp;lt;DBLPRC_CONSTANT&amp;gt; &amp;lt;DBLPRC_KIND_CON&amp;gt; &amp;lt;QUAPRC_CONSTANT&amp;gt; ...
        call wrf_debug(2,'CMP_INIT: stopped, rcvd ibuffer(3) value ',
------------------------------------------------------------------------^
cmpcomm.F(159): error #5276: Unbalanced parentheses
     &amp;amp;   ibuffer(3),' is not ibuffer_size=',ibuffer_size)
--------------------------------------------------------^
cmpcomm.F(159): error #5082: Syntax error, found '&amp;amp;' when expecting one of: &amp;lt;LABEL&amp;gt; &amp;lt;END-OF-STATEMENT&amp;gt; ; TYPE INTEGER REAL COMPLEX BYTE CHARACTER CLASS DOUBLE ...
     &amp;amp;   ibuffer(3),' is not ibuffer_size=',ibuffer_size)
---------^
cmpcomm.F(159): error #5082: Syntax error, found ')' when expecting one of: , &amp;lt;END-OF-STATEMENT&amp;gt; ;
     &amp;amp;   ibuffer(3),' is not ibuffer_size=',ibuffer_size)
--------------------------------------------------------^
cmpcomm.F(159): error #6252: This format specifier is invalid.   [3]
     &amp;amp;   ibuffer(3),' is not ibuffer_size=',ibuffer_size)
-----------------^
cmpcomm.F(159): error #6358: Constants and expressions are invalid in read-only I/O lists.   [' is not ibuffer_size=']
     &amp;amp;   ibuffer(3),' is not ibuffer_size=',ibuffer_size)
--------------------^
cmpcomm.F(159): error #6414: This PARAMETER constant name is invalid in this context.   [IBUFFER_SIZE]
     &amp;amp;   ibuffer(3),' is not ibuffer_size=',ibuffer_size)
--------------------------------------------^
cmpcomm.F(159): error #6358: Constants and expressions are invalid in read-only I/O lists.   [IBUFFER_SIZE]
     &amp;amp;   ibuffer(3),' is not ibuffer_size=',ibuffer_size)
--------------------------------------------^
cmpcomm.F(215): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: &amp;lt;REAL_KIND_CON&amp;gt; &amp;lt;REAL_CONSTANT&amp;gt; &amp;lt;DBLPRC_CONSTANT&amp;gt; &amp;lt;DBLPRC_KIND_CON&amp;gt; &amp;lt;QUAPRC_CONSTANT&amp;gt; ...
            write(message,*) 'CMP_INTRO: to call MPI_SEND ',
------------------------------------------------------------------------^
cmpcomm.F(216): error #5082: Syntax error, found '&amp;amp;' when expecting one of: &amp;lt;LABEL&amp;gt; &amp;lt;END-OF-STATEMENT&amp;gt; ; TYPE INTEGER REAL COMPLEX BYTE CHARACTER CLASS DOUBLE ...
     &amp;amp;      process_rank_local, process_rank_global
------------^
cmpcomm.F(221): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: &amp;lt;REAL_KIND_CON&amp;gt; &amp;lt;REAL_CONSTANT&amp;gt; &amp;lt;DBLPRC_CONSTANT&amp;gt; &amp;lt;DBLPRC_KIND_CON&amp;gt; &amp;lt;QUAPRC_CONSTANT&amp;gt; ...
          write(message,*) 'CMP_INTRO: error in MPI_SEND, process ',
------------------------------------------------------------------------^
cmpcomm.F(222): error #5082: Syntax error, found '&amp;amp;' when expecting one of: &amp;lt;LABEL&amp;gt; &amp;lt;END-OF-STATEMENT&amp;gt; ; TYPE INTEGER REAL COMPLEX BYTE CHARACTER CLASS DOUBLE ...
     &amp;amp;    process_rank_global
----------^
cmpcomm.F(280): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: &amp;lt;REAL_KIND_CON&amp;gt; &amp;lt;REAL_CONSTANT&amp;gt; &amp;lt;DBLPRC_CONSTANT&amp;gt; &amp;lt;DBLPRC_KIND_CON&amp;gt; &amp;lt;QUAPRC_CONSTANT&amp;gt; ...
        write(message,*) 'CMP_INTRO_m: error in MPI_SEND, process ',
------------------------------------------------------------------------^
cmpcomm.F(281): error #5082: Syntax error, found '&amp;amp;' when expecting one of: &amp;lt;LABEL&amp;gt; &amp;lt;END-OF-STATEMENT&amp;gt; ; TYPE INTEGER REAL COMPLEX BYTE CHARACTER CLASS DOUBLE ...
     &amp;amp;  process_rank_global
--------^
cmpcomm.F(311): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: &amp;lt;REAL_KIND_CON&amp;gt; &amp;lt;REAL_CONSTANT&amp;gt; &amp;lt;DBLPRC_CONSTANT&amp;gt; &amp;lt;DBLPRC_KIND_CON&amp;gt; &amp;lt;QUAPRC_CONSTANT&amp;gt; ...
        write(message,*) 'CMP_INTRO_s: error in MPI_RECV ',
------------------------------------------------------------------------^
cmpcomm.F(312): error #5082: Syntax error, found '&amp;amp;' when expecting one of: &amp;lt;LABEL&amp;gt; &amp;lt;END-OF-STATEMENT&amp;gt; ; TYPE INTEGER REAL COMPLEX BYTE CHARACTER CLASS DOUBLE ...
     &amp;amp;           process_rank_local
-----------------^
cmpcomm.f90(944): catastrophic error: Too many errors, exiting
compilation aborted for cmpcomm.f90 (code 1)
user1@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; mpiifort --version
ifort (IFORT) 17.0.5 20170817
Copyright (C) 1985-2017 Intel Corporation.  All rights reserved.&lt;/PRE&gt;

	&lt;P&gt;&amp;nbsp;&lt;/P&gt;

	&lt;P&gt;Could your please share your&amp;nbsp; f90 file?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Mar 2018 07:19:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unable-to-compile-f90-files-multiline-string-constant/m-p/1158135#M142171</guid>
      <dc:creator>psing51</dc:creator>
      <dc:date>2018-03-22T07:19:38Z</dc:date>
    </item>
    <item>
      <title>Quote:Juergen R. wrote:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unable-to-compile-f90-files-multiline-string-constant/m-p/1158136#M142172</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Juergen R. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I have no problems in compiling the code with either ifort, nor gfortran, nor gfortran-based mpifort.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Yes , you are correct. It seems that mpiifort is not recognizing the syntax.&lt;/P&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:bash;"&gt;user@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; mpif77 -E -DDM_PARALLEL cmpcomm.F &amp;gt; cmpcomm.f90
user@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; mpif77 -c cmpcomm.f90
cmpcomm.f90:39:10:

 !     The corresponding MPI data type variable MPI_kind_alt_REAL is
          1
Warning: Legacy Extension: Blanket SAVE statement at (1) follows previous SAVE statement
user@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; echo $?
0
user@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; mpif90 -E -DDM_PARALLEL cmpcomm.F &amp;gt; cmpcomm.f90
user@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; mpif90 -c cmpcomm.f90
cmpcomm.f90:39:10:

 !     The corresponding MPI data type variable MPI_kind_alt_REAL is
          1
Warning: Legacy Extension: Blanket SAVE statement at (1) follows previous SAVE statement
user@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; echo $?
0
user@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; mpiifort -E -DDM_PARALLEL cmpcomm.F &amp;gt; cmpcomm.f90
user@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; mpiifort -c cmpcomm.f90
cmpcomm.F(148): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , &amp;lt;REAL_KIND_CON&amp;gt; &amp;lt;REAL_CONSTANT&amp;gt; &amp;lt;DBLPRC_CONSTANT&amp;gt; &amp;lt;DBLPRC_KIND_CON&amp;gt; &amp;lt;QUAPRC_CONSTANT&amp;gt; ...
      call MPI_RECV(ibuffer,ibuffer_size,MPI_INTEGER,MPI_ANY_SOURCE,tag,
------------------------------------------------------------------------^
cmpcomm.F(149): error #5276: Unbalanced parentheses
     &amp;amp;MPI_COMM_WORLD,status,ierr)
--------------------------------^
cmpcomm.F(149): error #5082: Syntax error, found '&amp;amp;' when expecting one of: &amp;lt;LABEL&amp;gt; &amp;lt;END-OF-STATEMENT&amp;gt; ; TYPE INTEGER REAL COMPLEX BYTE CHARACTER CLASS DOUBLE ...
     &amp;amp;MPI_COMM_WORLD,status,ierr)
------^
cmpcomm.F(149): error #5082: Syntax error, found ')' when expecting one of: , ( ::&lt;/PRE&gt;

	&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;

&lt;P&gt;UPDATE-&amp;nbsp;&lt;/P&gt;

&lt;P&gt;mpif90/mpif77 is the correct preprocessor.&lt;/P&gt;

&lt;DIV&gt;
	&lt;PRE class="brush:bash;"&gt;user1@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; mpif90 -E -DDM_PARALLEL cmpcomm.F &amp;gt; cmpcomm.f90
user1@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt; mpiifort -c cmpcomm.f90
user1@machine1:~/MySoftwares/intel/WRF/3.8/WRFV3/external/atm_ocn&amp;gt;&lt;/PRE&gt;

	&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 07:24:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unable-to-compile-f90-files-multiline-string-constant/m-p/1158136#M142172</guid>
      <dc:creator>psing51</dc:creator>
      <dc:date>2018-03-22T07:24:00Z</dc:date>
    </item>
    <item>
      <title>Commands such as "... -E abc</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/unable-to-compile-f90-files-multiline-string-constant/m-p/1158137#M142173</link>
      <description>&lt;P&gt;Commands such as "... -E abc.F &amp;gt; pqr.f90" are what are causing your problems. The first file, abc.F, is by convention a fixed form Fortran file with preprocessor directives embedded in it. A preprocessor (or a compiler called with the -E flag) will produce an output file that is also fixed form. However, you are giving that file a ".f90" extension, which is the convention for a free form Fortran source. Thus, you have a file whose content is not in the form that the compiler expects to go with the name.&lt;/P&gt;

&lt;P&gt;Use " ... -E abc.F &amp;gt; pqr.f" or use a compiler flag to ignore the file name suffix (.f90) and consider the file as fixed form.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 08:09:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/unable-to-compile-f90-files-multiline-string-constant/m-p/1158137#M142173</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-03-22T08:09:16Z</dc:date>
    </item>
  </channel>
</rss>

