Start with Xbeach - Compile and run Xbeach with a DVF 6.6 compiler

269 views
Skip to first unread message

PF

unread,
May 25, 2011, 6:36:33 PM5/25/11
to xbe...@googlegroups.com
Hi,

I have been a user of XBeach105 (version 105?).  I compile and execute XBeach model with a Digital Visual Fortran (DVF) 6.6 compiler on a PC.  Recently, I followed the steps and downloaded the source code and compile the model with the same DVF6.6.  However, I noticed that I was compiling "makeincludes" and executing "makeincludes", not "xbeach.exe" as I used to have with the XBeach105 model.   I was able to successfully compile the "makeincludes", which has more than 26 additional source code files.   When I click the "execution of makeincludes" under the DVFconsole, a DOS window pops up and nothing shows up on the screen, without any response.  I must have done incorrectly somewhere.  Where can I find the information about compiling, and running the new Xbeach model?

Thanks.
PF

Fedor Baart

unread,
May 26, 2011, 4:14:05 AM5/26/11
to xbe...@googlegroups.com
Hi PF,

The makeincludes is a custom preprocessor that parses the
spaceparams.tmpl file and generates some extra source code files. When
you open the xbeach.dsw file it should contain two projects:
makeincludes and xbeach. You should make sure that xbeach is your
"startup project" (set it by clicking with the right mouse button on
the XBeach project). The xbeach project depends on the maceincludes
project so you don't have to run that seperate.

More information about compiling the windows version can be found in
the manual (in the doc directory). Most details about the linux
compiling are in the INSTALL file.

HTH,

Fedor

> --
> You received this message because you are subscribed to the Google
> Groups "XBeach" group.
> To post to this group, send email to xbe...@googlegroups.com.
> To unsubscribe from this group, send email to xbeach+un...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/xbeach?hl=en
> .

Pei-Fang Wang

unread,
May 26, 2011, 9:53:00 AM5/26/11
to xbe...@googlegroups.com
Hi Fedor,
Thank you for the information. I followed the instruction and was
able to select xbeach as the active project. When I compiled (Rebuild
All), I got 660 errors. Below are some of the errors and the total
number of errors.
I know I may be close to getting the model running. Please
continue to guide me toward that. Thanks.

PF

C:\Xbeach-Apr-29-2011\trunk\xbeach.f90(70) : Error: This name does not
have a type, and must have an explicit type. [S]
s => sglobal
^
C:\Xbeach-Apr-29-2011\trunk\xbeach.f90(70) : Error: The variable must
have the TARGET attribute or be a subobject of an object with the
TARGET attribute, or it must have the POINTER attribute. [SGLOBAL]
s => sglobal
-----^
C:\Xbeach-Apr-29-2011\trunk\xbeach.f90(82) : Error: This name does not
have a type, and must have an explicit type. [TPAR]
call timestep_init(par, tpar)
------------------------^
C:\Xbeach-Apr-29-2011\trunk\xbeach.f90(121) : Error: Keyword arguments
are invalid without an explicit interface. [IERR]
call timestep(s,par,tpar,it,ierr=error)
-------------------------------^
Error executing df.exe.

xbeach.exe - 660 error(s), 20 warning(s)

D.Roe...@unesco-ihe.org

unread,
May 27, 2011, 3:53:56 AM5/27/11
to xbe...@googlegroups.com

Hi Pei-Fang,

I did a check myself and found some small problems, the xbeach.dsp had to be updated a bit. Also, for some reason you need to do 'rebuild all' on the xbeach project. The 6-00 erros occur if the post-build step in makeincludes is not executed. This step executes makeincludes.exe and generates a number of file with extension .gen. Without them the derived type s is not declared and memory is not allocated etc. So if you update your trunk version now and try 'rebuild all'on xbeah it should compile and link.

Good luck,

Dano



Pei-Fang Wang <spf...@gmail.com>
Sent by: xbe...@googlegroups.com

05/26/2011 03:55 PM

Please respond to
xbe...@googlegroups.com

To
xbe...@googlegroups.com
cc
Subject
Re: Start with Xbeach - Compile and run Xbeach with a DVF 6.6 compiler


Pei-Fang Wang

unread,
May 27, 2011, 10:07:40 AM5/27/11
to xbe...@googlegroups.com
Hi Dano,

1)  I re-downloaded the files (and updated the trunk, both ways)
2) set Xbeach as the active project
3) rebuild all
  
   660 errors are produced during compilation, similar to what used to be. 

PF

Pei-Fang Wang

unread,
May 27, 2011, 10:21:42 AM5/27/11
to xbe...@googlegroups.com
Dano,

   These are some of the messages from Rebuild All, before the 719 (to be exact) errors follow.

PF

Deleting intermediate files and output files for project 'makeincludes - Win32 Debug'.
Deleting intermediate files and output files for project 'xbeach - Win32 Debug'.
C:\XBeach-May 27-2011\xmpi.F90(3): Could not find the file mpi.mod.
C:\XBeach-May 27-2011\xbeach.f90(3): Could not find the file params.mod.
C:\XBeach-May 27-2011\xbeach.f90(4): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\xbeach.f90(6): Could not find the file initialize.mod.
C:\XBeach-May 27-2011\xbeach.f90(7): Could not find the file boundaryconditions.mod.
C:\XBeach-May 27-2011\xbeach.f90(8): Could not find the file drifter_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(9): Could not find the file flow_timestep_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(10): Could not find the file morphevolution.mod.
C:\XBeach-May 27-2011\xbeach.f90(11): Could not find the file readtide_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(12): Could not find the file readwind_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(13): Could not find the file wave_timestep_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(14): Could not find the file timestep_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(15): Could not find the file readkey_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(16): Could not find the file groundwaterflow.mod.
C:\XBeach-May 27-2011\xbeach.f90(17): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(18): Could not find the file means_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(19): Could not find the file output_module.mod.
C:\XBeach-May 27-2011\waveparams.f90(35): Could not find the file params.mod.
C:\XBeach-May 27-2011\waveparams.f90(36): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\waveparams.f90(37): Could not find the file readkey_module.mod.
C:\XBeach-May 27-2011\waveparams.f90(209): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\waveparams.f90(431): Could not find the file math_tools.mod.
C:\XBeach-May 27-2011\waveparams.f90(908): Could not find the file interp.mod.
C:\XBeach-May 27-2011\wave_timestep.f90(32): Could not find the file params.mod.
C:\XBeach-May 27-2011\wave_timestep.f90(33): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\wave_timestep.f90(34): Could not find the file wave_stationary_module.mod.
C:\XBeach-May 27-2011\wave_timestep.f90(35): Could not find the file wave_instationary_module.mod.
C:\XBeach-May 27-2011\wave_stationary.F90(4): Could not find the file params.mod.
C:\XBeach-May 27-2011\wave_stationary.F90(5): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\wave_stationary.F90(6): Could not find the file roelvink_module.mod.
C:\XBeach-May 27-2011\wave_stationary.F90(7): Could not find the file wave_functions_module.mod.
C:\XBeach-May 27-2011\wave_stationary.F90(9): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\s.ind(1): Could not find the file space_ind.gen.
C:\XBeach-May 27-2011\s.inp(1): Could not find the file space_inp.gen.
C:\XBeach-May 27-2011\wave_instationary.F90(7): Could not find the file params.mod.

On Fri, May 27, 2011 at 12:53 AM, <D.Roe...@unesco-ihe.org> wrote:

D.Roe...@unesco-ihe.org

unread,
May 27, 2011, 10:40:59 AM5/27/11
to xbe...@googlegroups.com

Hi Pe-Fang,

This is what I get using Compaq Visual Fortran 6.6, after I've loaded the xbeach.dsw file, selected 'clean' and then 'rebuild all'. The problem must be somewhere in the beginning, I don't see makeincludesw being compiled, linked and executed in your output.
- please check if you are getting a makeincludes.exe in subdirectory Debug.
- do you get .gen files?
- if not, try executing:    debug/makeincludes.exe < nul from the trunk directory (where all the source files are) and the try building xbeach.

Best regards,

Dano




Deleting intermediate files and output files for project 'makeincludes - Win32 Debug'.
Deleting intermediate files and output files for project 'xbeach - Win32 Debug'.
--------------------Configuration: makeincludes - Win32 Debug--------------------
Compiling Fortran...
D:\data\dano\XBeach_new\trunk\makeincludes.F90
Linking...
 Making spacedecl.gen
 Making mnemonic.gen
 Making indextos.gen
 Making space_alloc_scalars.gen
 Making space_alloc_arrays.gen
 Making space_ind.gen
 Making space_inp.gen
 Making chartoindex.gen
--------------------Configuration: xbeach - Win32 Debug--------------------
Compiling Fortran...
constants.i90
general_fileio.i90
interp.i90
xmpi.i90
logging.i90
D:\data\dano\XBeach_new\trunk\logging.F90(200) : Info: This variable has not been used.   [T0]
subroutine writelog_finalize(tbegin, t0, t01)
-------------------------------------^
D:\data\dano\XBeach_new\trunk\logging.F90(200) : Info: This variable has not been used.   [T01]
subroutine writelog_finalize(tbegin, t0, t01)
-----------------------------------------^
mnemonic.i90
general_mpi.i90
filefunctions.i90
readkey.i90
params.i90
spaceparams.i90
wave_functions.i90
D:\data\dano\XBeach_new\trunk\wave_functions.F90(139) : Info: This variable has not been used.   [DT]
subroutine advecyho(ee,cgy,yadvec,nx,ny,ntheta,dsv,dnv,dsdnzi,dt,scheme)
--------------------------------------------------------------^
D:\data\dano\XBeach_new\trunk\wave_functions.F90(52) : Info: This variable has not been used.   [DT]
subroutine advecxho(ee,cgx,xadvec,nx,ny,ntheta,dnu,dsu,dsdnzi,dt,scheme)
--------------------------------------------------------------^
math_tools.i90
roelvink.i90
wave_instationary.i90
postprocess.i90
D:\data\dano\XBeach_new\trunk\postprocess.F90(257) : Info: This variable has not been used.   [S]
  subroutine gridrotate_i4(s, t, x)
---------------------------^
D:\data\dano\XBeach_new\trunk\postprocess.F90(248) : Info: This variable has not been used.   [S]
  subroutine gridrotate_i3(s, t, x)
---------------------------^
D:\data\dano\XBeach_new\trunk\postprocess.F90(239) : Info: This variable has not been used.   [S]
  subroutine gridrotate_i2(s, t, x)
---------------------------^
D:\data\dano\XBeach_new\trunk\postprocess.F90(229) : Info: This variable has not been used.   [S]
  subroutine gridrotate_i1(s, t, x)
---------------------------^
D:\data\dano\XBeach_new\trunk\postprocess.F90(219) : Info: This variable has not been used.   [S]
  subroutine gridrotate_i0(s, t, x)
---------------------------^
D:\data\dano\XBeach_new\trunk\postprocess.F90(208) : Info: This variable has not been used.   [S]
  subroutine gridrotate_r4(s, t, x)
---------------------------^
D:\data\dano\XBeach_new\trunk\postprocess.F90(92) : Info: This variable has not been used.   [S]
  subroutine gridrotate_r1(s, t, x)
---------------------------^
D:\data\dano\XBeach_new\trunk\postprocess.F90(82) : Info: This variable has not been used.   [S]
  subroutine gridrotate_r0(s, t, x)
---------------------------^
timestep.i90
varianceupdate.i90
D:\data\dano\XBeach_new\trunk\varianceupdate.F90(408) : Info: This variable has not been used.   [SL]
  subroutine makecrossvector(s,sl,crossvararray,nvar,varindexvec,mg&
-------------------------------^
D:\data\dano\XBeach_new\trunk\varianceupdate.F90(48) : Info: This variable has not been used.   [SL]
  subroutine means_init(sg,sl,par)
---------------------------^
varoutput.i90
D:\data\dano\XBeach_new\trunk\varoutput.f90(899) : Info: This variable has not been used.   [S]
subroutine outarray_r3(s,index,x)
-----------------------^
D:\data\dano\XBeach_new\trunk\varoutput.f90(63) : Info: This variable has not been used.   [SL]
  subroutine var_output_init(s,sl,par,tpar)
-------------------------------^
D:\data\dano\XBeach_new\trunk\varoutput.f90(305) : Info: This variable has not been used.   [XRANK]
    integer                                 :: xrank,xmax
-----------------------------------------------^
output.i90
groundwater.i90
wave_stationary.i90
wave_timestep.i90
readwind.i90
readtide.i90
morphevolution.i90
waveparams.i90
boundaryconditions.i90
flow_secondorder.i90
solver.i90
nonh.i90
flow_timestep.i90
drifters.i90
initialize.i90
xbeach.i90
Linking...

xbeach.exe - 0 error(s), 0 warning(s)



Pei-Fang Wang <spf...@gmail.com>
Sent by: xbe...@googlegroups.com

05/27/2011 04:10 PM

Pei-Fang Wang

unread,
May 27, 2011, 11:54:11 AM5/27/11
to xbe...@googlegroups.com
Dano, 

I got the same errors after checking the bullets you listed.
1) I did 'clean' and rebuild all
2) I found makeincludes.exe in the Debug subdirectory.
3) I do not know how/where to find out if I get .gen files.  Part of the messages say to make .gen files (below)
4) In trunk/debug subdirectory, I click the makeincludes.exe file, and a DOS window pops up and I press "Enter" and the window disappear.  I suppose this is what you meant in debug/makeincludes.exe < nul

Thanks.

PF




Deleting intermediate files and output files for project 'makeincludes - Win32 Debug'.
Deleting intermediate files and output files for project 'xbeach - Win32 Debug'.
--------------------Configuration: makeincludes - Win32 Debug--------------------
Compiling Fortran...
C:\XBeach-New\trunk\makeincludes.F90

Linking...
 Making spacedecl.gen
 Making mnemonic.gen
 Making indextos.gen
 Making space_alloc_scalars.gen
 Making space_alloc_arrays.gen
 Making space_ind.gen
 Making space_inp.gen
 Making chartoindex.gen
--------------------Configuration: xbeach - Win32 Debug--------------------
Compiling Fortran...
xmpi.i90
logging.i90
C:\XBeach-New\trunk\logging.F90(152) : Error: Cannot open include file 'version.dat'
    include 'version.dat'
------------^
C:\XBeach-New\trunk\logging.F90(200) : Warning: This variable has not been used.   [T0]

subroutine writelog_finalize(tbegin, t0, t01)
-------------------------------------^
C:\XBeach-New\trunk\logging.F90(200) : Warning: This variable has not been used.   [T01]

subroutine writelog_finalize(tbegin, t0, t01)
-----------------------------------------^
readkey.i90
C:\XBeach-New\trunk\readkey.f90(35) : Error: Error in opening the Library module file.   [LOGGING_MODULE]
    use logging_module
--------^
C:\XBeach-New\trunk\readkey.f90(103) : Error: Error in opening the Library module file.   [LOGGING_MODULE]
    use logging_module
--------^
C:\XBeach-New\trunk\readkey.f90(166) : Error: Error in opening the Library module file.   [LOGGING_MODULE]
    use logging_module
--------^
C:\XBeach-New\trunk\readkey.f90(247) : Error: Error in opening the Library module file.   [LOGGING_MODULE]
    use logging_module
--------^
C:\XBeach-New\trunk\readkey.f90(299) : Error: Error in opening the Library module file.   [LOGGING_MODULE]
    use logging_module
--------^
C:\XBeach-New\trunk\readkey.f90(414) : Error: Error in opening the Library module file.   [LOGGING_MODULE]
    use logging_module
--------^
interp.i90
constants.i90
mnemonic.i90
C:\XBeach-New\trunk\mnemonic.F90(33) : Error: Error in opening the Library module file.   [LOGGING_MODULE]
  use logging_module
------^
filefunctions.i90
C:\XBeach-New\trunk\filefunctions.F90(13) : Error: Error in opening the Library module file.   [LOGGING_MODULE]
    use logging_module
--------^
C:\XBeach-New\trunk\filefunctions.F90(30) : Error: Error in opening the Library module file.   [LOGGING_MODULE]
    use logging_module
--------^
C:\XBeach-New\trunk\filefunctions.F90(52) : Error: Error in opening the Library module file.   [LOGGING_MODULE]
    use logging_module
--------^
C:\XBeach-New\trunk\filefunctions.F90(79) : Error: Error in opening the Library module file.   [LOGGING_MODULE]
    use logging_module
--------^

D.Roe...@unesco-ihe.org

unread,
May 29, 2011, 2:15:02 PM5/29/11
to xbe...@googlegroups.com
Pei-Fang,
 
  • I think if you look in the directory where your source files and dsw and dsp files are you will now find a number of .gen files, so that hurdle is passed. At least that is what the messages like 'Making spacedecl.gen' etc mean.
  • You are missing a file version.dat. To make it just execute makeversiondat.bat and try again.

Good luck,

Dano



-----xbe...@googlegroups.com wrote: -----

To: xbe...@googlegroups.com
From: Pei-Fang Wang <spf...@gmail.com>
Sent by: xbe...@googlegroups.com
Date: 05/27/2011 05:54PM

Pei-Fang Wang

unread,
May 30, 2011, 12:06:31 AM5/30/11
to xbe...@googlegroups.com
Hi Dano,
   I clicked makeversion.bat and found the version.data and re-build all.  This time I have only 69 errors (below), compared to 712 errors previously.

PF Wang


Deleting intermediate files and output files for project 'makeincludes - Win32 Debug'.
Deleting intermediate files and output files for project 'xbeach - Win32 Debug'.
C:\XBeach-May 27-2011\xmpi.F90(3): Could not find the file mpi.mod.
C:\XBeach-May 27-2011\xbeach.f90(3): Could not find the file params.mod.
C:\XBeach-May 27-2011\xbeach.f90(4): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\xbeach.f90(6): Could not find the file initialize.mod.
C:\XBeach-May 27-2011\xbeach.f90(7): Could not find the file boundaryconditions.mod.
C:\XBeach-May 27-2011\xbeach.f90(8): Could not find the file drifter_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(9): Could not find the file flow_timestep_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(10): Could not find the file morphevolution.mod.
C:\XBeach-May 27-2011\xbeach.f90(11): Could not find the file readtide_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(12): Could not find the file readwind_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(13): Could not find the file wave_timestep_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(14): Could not find the file timestep_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(15): Could not find the file readkey_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(16): Could not find the file groundwaterflow.mod.
C:\XBeach-May 27-2011\xbeach.f90(17): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(18): Could not find the file means_module.mod.
C:\XBeach-May 27-2011\xbeach.f90(19): Could not find the file output_module.mod.
C:\XBeach-May 27-2011\waveparams.f90(35): Could not find the file params.mod.
C:\XBeach-May 27-2011\waveparams.f90(36): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\waveparams.f90(37): Could not find the file readkey_module.mod.
C:\XBeach-May 27-2011\waveparams.f90(209): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\wave_timestep.f90(32): Could not find the file params.mod.
C:\XBeach-May 27-2011\wave_timestep.f90(33): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\wave_timestep.f90(34): Could not find the file wave_stationary_module.mod.
C:\XBeach-May 27-2011\wave_timestep.f90(35): Could not find the file wave_instationary_module.mod.
C:\XBeach-May 27-2011\wave_stationary.F90(4): Could not find the file params.mod.
C:\XBeach-May 27-2011\wave_stationary.F90(5): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\wave_stationary.F90(6): Could not find the file roelvink_module.mod.
C:\XBeach-May 27-2011\wave_stationary.F90(7): Could not find the file wave_functions_module.mod.
C:\XBeach-May 27-2011\wave_stationary.F90(9): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\wave_instationary.F90(7): Could not find the file params.mod.
C:\XBeach-May 27-2011\wave_instationary.F90(8): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\wave_instationary.F90(9): Could not find the file roelvink_module.mod.
C:\XBeach-May 27-2011\wave_instationary.F90(10): Could not find the file wave_functions_module.mod.
C:\XBeach-May 27-2011\wave_instationary.F90(12): Could not find the file mnemmodule.mod.
C:\XBeach-May 27-2011\wave_functions.F90(411): Could not find the file params.mod.
C:\XBeach-May 27-2011\wave_functions.F90(412): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\wave_functions.F90(413): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\varoutput.f90(8): Could not find the file mnemmodule.mod.
C:\XBeach-May 27-2011\varoutput.f90(9): Could not find the file means_module.mod.
C:\XBeach-May 27-2011\varoutput.f90(64): Could not find the file params.mod.
C:\XBeach-May 27-2011\varoutput.f90(65): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\varoutput.f90(66): Could not find the file readkey_module.mod.
C:\XBeach-May 27-2011\varoutput.f90(67): Could not find the file timestep_module.mod.
C:\XBeach-May 27-2011\varoutput.f90(68): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\varoutput.f90(69): Could not find the file postprocessmod.mod.
C:\XBeach-May 27-2011\varoutput.f90(70): Could not find the file filefunctions.mod.
C:\XBeach-May 27-2011\varianceupdate.F90(6): Could not find the file mnemmodule.mod.
C:\XBeach-May 27-2011\varianceupdate.F90(49): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\varianceupdate.F90(50): Could not find the file params.mod.
C:\XBeach-May 27-2011\varianceupdate.F90(238): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\varianceupdate.F90(239): Could not find the file postprocessmod.mod.
C:\XBeach-May 27-2011\varianceupdate.F90(240): Could not find the file timestep_module.mod.
C:\XBeach-May 27-2011\timestep.f90(120): Could not find the file params.mod.
C:\XBeach-May 27-2011\timestep.f90(122): Could not find the file readkey_module.mod.
C:\XBeach-May 27-2011\timestep.f90(123): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\timestep.f90(384): Could not find the file spaceparams.mod.
C:\XBeach-May 27-2011\spaceparams.F90(91): Could not find the file mnemmodule.mod.
C:\XBeach-May 27-2011\spaceparams.F90(93): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\spaceparams.F90(123): Could not find the file params.mod.
C:\XBeach-May 27-2011\solver.F90(95): Could not find the file params.mod.
C:\XBeach-May 27-2011\solver.F90(96): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\roelvink.f90(48): Could not find the file params.mod.
C:\XBeach-May 27-2011\readwind.F90(30): Could not find the file params.mod.
C:\XBeach-May 27-2011\readwind.F90(33): Could not find the file readkey_module.mod.
C:\XBeach-May 27-2011\readwind.F90(34): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\readtide.f90(30): Could not find the file params.mod.
C:\XBeach-May 27-2011\readtide.f90(33): Could not find the file readkey_module.mod.
C:\XBeach-May 27-2011\readtide.f90(34): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\readkey.f90(35): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\postprocess.F90(28): Could not find the file params.mod.
C:\XBeach-May 27-2011\postprocess.F90(29): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\postprocess.F90(84): Could not find the file mnemmodule.mod.
C:\XBeach-May 27-2011\params.f90(2): Could not find the file mnemmodule.mod.
C:\XBeach-May 27-2011\params.f90(352): Could not find the file filefunctions.mod.
C:\XBeach-May 27-2011\params.f90(353): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\params.f90(1208): Could not find the file mpi.mod.
C:\XBeach-May 27-2011\output.F90(3): Could not find the file config.h.
C:\XBeach-May 27-2011\output.F90(6): Could not find the file ncoutput_module.mod.
C:\XBeach-May 27-2011\output.F90(11): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\nonh.F90(543): Could not find the file flow_secondorder_module.mod.
C:\XBeach-May 27-2011\morphevolution.f90(4): Could not find the file config.h.
C:\XBeach-May 27-2011\morphevolution.f90(1595): Could not find the file ieee_arithmetic.mod.
C:\XBeach-May 27-2011\mnemonic.F90(33): Could not find the file logging_module.mod.
C:\XBeach-May 27-2011\logging.F90(147): Could not find the file config.h.
C:\XBeach-May 27-2011\general_mpi.F90(97): Could not find the file mpi.mod.
C:\XBeach-May 27-2011\flow_timestep.f90(33): Could not find the file boundaryconditions.mod.
C:\XBeach-May 27-2011\flow_timestep.f90(36): Could not find the file flow_secondorder_module.mod.

--------------------Configuration: makeincludes - Win32 Debug--------------------
Compiling Fortran...
C:\XBeach-May 27-2011\makeincludes.F90

Linking...
 Making spacedecl.gen
 Making mnemonic.gen
 Making indextos.gen
 Making space_alloc_scalars.gen
 Making space_alloc_arrays.gen
 Making space_ind.gen
 Making space_inp.gen
 Making chartoindex.gen
--------------------Configuration: xbeach - Win32 Debug--------------------
Compiling Fortran...
xmpi.i90
logging.i90
C:\XBeach-May 27-2011\logging.F90(200) : Warning: This variable has not been used.   [T0]

subroutine writelog_finalize(tbegin, t0, t01)
-------------------------------------^
C:\XBeach-May 27-2011\logging.F90(200) : Warning: This variable has not been used.   [T01]

subroutine writelog_finalize(tbegin, t0, t01)
-----------------------------------------^
readkey.i90
interp.i90
general_mpi.i90
math_tools.i90
constants.i90
mnemonic.i90
filefunctions.i90
params.i90
spaceparams.i90
C:\XBeach-May 27-2011\spaceparams.F90(90) : Warning: This variable has not been used.   [S]
subroutine indextos(s,index,t)
--------------------^
wave_functions.i90
C:\XBeach-May 27-2011\wave_functions.F90(139) : Warning: This variable has not been used.   [DT]
subroutine advecyho(ee,cgy,yadvec,nx,ny,ntheta,dsv,dnv,dsdnzi,dt,scheme)
--------------------------------------------------------------^
C:\XBeach-May 27-2011\wave_functions.F90(52) : Warning: This variable has not been used.   [DT]
subroutine advecxho(ee,cgx,xadvec,nx,ny,ntheta,dnu,dsu,dsdnzi,dt,scheme)
--------------------------------------------------------------^
waveparams.i90
boundaryconditions.i90
drifters.i90
flow_secondorder.i90
solver.i90
nonh.i90
flow_timestep.i90
general_fileio.i90
groundwater.i90
initialize.i90
morphevolution.i90
timestep.i90
C:\XBeach-May 27-2011\timestep.f90(94) : Error: This attribute specification is not valid for a component definition statement.   [ALLOCATABLE]
  real*8,dimension(:),allocatable     :: tpg ! global output times
----------------------^
C:\XBeach-May 27-2011\timestep.f90(95) : Error: This attribute specification is not valid for a component definition statement.   [ALLOCATABLE]
  real*8,dimension(:),allocatable     :: tpp ! point oputput times
----------------------^
C:\XBeach-May 27-2011\timestep.f90(96) : Error: This attribute specification is not valid for a component definition statement.   [ALLOCATABLE]
  real*8,dimension(:),allocatable     :: tpm ! time average output times
----------------------^
C:\XBeach-May 27-2011\timestep.f90(97) : Error: This attribute specification is not valid for a component definition statement.   [ALLOCATABLE]
  real*8,dimension(:),allocatable     :: tpc ! crosssection output times
----------------------^
C:\XBeach-May 27-2011\timestep.f90(98) : Error: This attribute specification is not valid for a component definition statement.   [ALLOCATABLE]
  real*8,dimension(:),allocatable     :: tpw ! wave output times
----------------------^
C:\XBeach-May 27-2011\timestep.f90(94) : Error: This ALLOCATABLE attribute is invalid; the ALLOCATABLE attribute can only be used when declaring array objects.   [TPG]
  real*8,dimension(:),allocatable     :: tpg ! global output times
-----------------------------------------^
C:\XBeach-May 27-2011\timestep.f90(95) : Error: This ALLOCATABLE attribute is invalid; the ALLOCATABLE attribute can only be used when declaring array objects.   [TPP]
  real*8,dimension(:),allocatable     :: tpp ! point oputput times
-----------------------------------------^
C:\XBeach-May 27-2011\timestep.f90(96) : Error: This ALLOCATABLE attribute is invalid; the ALLOCATABLE attribute can only be used when declaring array objects.   [TPM]
  real*8,dimension(:),allocatable     :: tpm ! time average output times
-----------------------------------------^
C:\XBeach-May 27-2011\timestep.f90(97) : Error: This ALLOCATABLE attribute is invalid; the ALLOCATABLE attribute can only be used when declaring array objects.   [TPC]
  real*8,dimension(:),allocatable     :: tpc ! crosssection output times
-----------------------------------------^
C:\XBeach-May 27-2011\timestep.f90(98) : Error: This ALLOCATABLE attribute is invalid; the ALLOCATABLE attribute can only be used when declaring array objects.   [TPW]
  real*8,dimension(:),allocatable     :: tpw ! wave output times
-----------------------------------------^
C:\XBeach-May 27-2011\timestep.f90(162) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPW]
      allocate(tpar%tpw(ii))
--------------------^
C:\XBeach-May 27-2011\timestep.f90(175) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPW]
   allocate(tpar%tpw(0))
-----------------^
C:\XBeach-May 27-2011\timestep.f90(186) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPG]
         allocate(tpar%tpg(ii))
-----------------------^
C:\XBeach-May 27-2011\timestep.f90(194) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPG]
         allocate(tpar%tpg(ii))
-----------------------^
C:\XBeach-May 27-2011\timestep.f90(208) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPG]
   allocate(tpar%tpg(0))
-----------------^
C:\XBeach-May 27-2011\timestep.f90(219) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPP]
         allocate(tpar%tpp(ii))
-----------------------^
C:\XBeach-May 27-2011\timestep.f90(227) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPP]
         allocate(tpar%tpp(ii))
-----------------------^
C:\XBeach-May 27-2011\timestep.f90(241) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPP]
   allocate(tpar%tpp(0))
-----------------^
C:\XBeach-May 27-2011\timestep.f90(252) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPC]
         allocate(tpar%tpc(ii))
-----------------------^
C:\XBeach-May 27-2011\timestep.f90(259) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPC]
         allocate(tpar%tpc(ii))
-----------------------^
C:\XBeach-May 27-2011\timestep.f90(273) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPC]
   allocate(tpar%tpc(0))
-----------------^
C:\XBeach-May 27-2011\timestep.f90(284) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPM]
         allocate(tpar%tpm(ii))
-----------------------^
C:\XBeach-May 27-2011\timestep.f90(296) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPM]
         allocate(tpar%tpm(ii))
-----------------------^
C:\XBeach-May 27-2011\timestep.f90(310) : Error: An allocate/deallocate object must have the ALLOCATABLE or POINTER attribute.   [TPM]
   allocate(tpar%tpm(0))
-----------------^
postprocess.i90
C:\XBeach-May 27-2011\postprocess.F90(257) : Warning: This variable has not been used.   [S]

  subroutine gridrotate_i4(s, t, x)
---------------------------^
C:\XBeach-May 27-2011\postprocess.F90(248) : Warning: This variable has not been used.   [S]

  subroutine gridrotate_i3(s, t, x)
---------------------------^
C:\XBeach-May 27-2011\postprocess.F90(239) : Warning: This variable has not been used.   [S]

  subroutine gridrotate_i2(s, t, x)
---------------------------^
C:\XBeach-May 27-2011\postprocess.F90(229) : Warning: This variable has not been used.   [S]

  subroutine gridrotate_i1(s, t, x)
---------------------------^
C:\XBeach-May 27-2011\postprocess.F90(219) : Warning: This variable has not been used.   [S]

  subroutine gridrotate_i0(s, t, x)
---------------------------^
C:\XBeach-May 27-2011\postprocess.F90(208) : Warning: This variable has not been used.   [S]

  subroutine gridrotate_r4(s, t, x)
---------------------------^
C:\XBeach-May 27-2011\postprocess.F90(92) : Warning: This variable has not been used.   [S]

  subroutine gridrotate_r1(s, t, x)
---------------------------^
C:\XBeach-May 27-2011\postprocess.F90(82) : Warning: This variable has not been used.   [S]

  subroutine gridrotate_r0(s, t, x)
---------------------------^
varianceupdate.i90
C:\XBeach-May 27-2011\varianceupdate.F90(240) : Error: Error in opening the Library module file.   [TIMESTEP_MODULE]
    use timestep_module
--------^
C:\XBeach-May 27-2011\varianceupdate.F90(408) : Warning: This variable has not been used.   [SL]
  subroutine makecrossvector(s,sl,crossvararray,nvar,varindexvec,mg&
-------------------------------^
C:\XBeach-May 27-2011\varianceupdate.F90(48) : Warning: This variable has not been used.   [SL]
  subroutine means_init(sg,sl,par)
---------------------------^
varoutput.i90
C:\XBeach-May 27-2011\varoutput.f90(9) : Error: Error in opening the Library module file.   [MEANS_MODULE]
  use means_module
------^
C:\XBeach-May 27-2011\varoutput.f90(67) : Error: Error in opening the Library module file.   [TIMESTEP_MODULE]
    use timestep_module
--------^
C:\XBeach-May 27-2011\varoutput.f90(79) : Error: This derived type name has not been declared.   [TIMEPARS]
    type(timepars),intent(in)           :: tpar
---------^
C:\XBeach-May 27-2011\varoutput.f90(63) : Error: This name does not have a type, and must have an explicit type.   [TPAR]
  subroutine var_output_init(s,sl,par,tpar)
--------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(291) : Error: Error in opening the Library module file.   [TIMESTEP_MODULE]
    use timestep_module
--------^
C:\XBeach-May 27-2011\varoutput.f90(301) : Error: This derived type name has not been declared.   [TIMEPARS]
    type(timepars),intent(in)               :: tpar
---------^
C:\XBeach-May 27-2011\varoutput.f90(311) : Error: This name does not have a type, and must have an explicit type.   [TPAR]
    real*8,dimension(size(tpar%tpg)+size(tpar%tpp)+size(tpar%tpc)+size(tpar%tpm)) :: outputtimes
--------------------------^
C:\XBeach-May 27-2011\varoutput.f90(311) : Error: A specification expression is invalid.   [OUTPUTTIMES]
    real*8,dimension(size(tpar%tpg)+size(tpar%tpp)+size(tpar%tpc)+size(tpar%tpm)) :: outputtimes
-------------------------------------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(311) : Error: An array-valued argument is required in this context.   [SIZE]
    real*8,dimension(size(tpar%tpg)+size(tpar%tpp)+size(tpar%tpc)+size(tpar%tpm)) :: outputtimes
--------------------------^
C:\XBeach-May 27-2011\varoutput.f90(311) : Error: A specification expression is invalid.   [OUTPUTTIMES]
    real*8,dimension(size(tpar%tpg)+size(tpar%tpp)+size(tpar%tpc)+size(tpar%tpm)) :: outputtimes
-------------------------------------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(311) : Error: An array-valued argument is required in this context.   [SIZE]
    real*8,dimension(size(tpar%tpg)+size(tpar%tpp)+size(tpar%tpc)+size(tpar%tpm)) :: outputtimes
-----------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(311) : Error: A specification expression is invalid.   [OUTPUTTIMES]
    real*8,dimension(size(tpar%tpg)+size(tpar%tpp)+size(tpar%tpc)+size(tpar%tpm)) :: outputtimes
-------------------------------------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(311) : Error: An array-valued argument is required in this context.   [SIZE]
    real*8,dimension(size(tpar%tpg)+size(tpar%tpp)+size(tpar%tpc)+size(tpar%tpm)) :: outputtimes
--------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(311) : Error: A specification expression is invalid.   [OUTPUTTIMES]
    real*8,dimension(size(tpar%tpg)+size(tpar%tpp)+size(tpar%tpc)+size(tpar%tpm)) :: outputtimes
-------------------------------------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(311) : Error: An array-valued argument is required in this context.   [SIZE]
    real*8,dimension(size(tpar%tpg)+size(tpar%tpp)+size(tpar%tpc)+size(tpar%tpm)) :: outputtimes
-----------------------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(94) : Error: An array-valued argument is required in this context.   [SIZE]
    stpm = size(tpar%tpm)
----------------^
C:\XBeach-May 27-2011\varoutput.f90(322) : Error: A logical data type is required in this context.   [OUTPUT]
    if (tpar%output) then
-------------^
C:\XBeach-May 27-2011\varoutput.f90(328) : Error: A logical data type is required in this context.   [OUTPUTP]
          if (tpar%outputp) then
-------------------^
C:\XBeach-May 27-2011\varoutput.f90(423) : Error: A logical data type is required in this context.   [OUTPUTC]
          if (tpar%outputc) then
-------------------^
C:\XBeach-May 27-2011\varoutput.f90(447) : Error: This name has not been declared as an array.   [MEANSPARSGLOBAL]
                meansparsglobal(i)=meansparslocal(i)
----------------^
C:\XBeach-May 27-2011\varoutput.f90(447) : Error: This name does not have a type, and must have an explicit type.   [MEANSPARSLOCAL]
                meansparsglobal(i)=meansparslocal(i)
-----------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(459) : Error: In a CASE statement, the case-expr must be of type INTEGER, CHARACTER, or LOGICAL.   [RANK]
                select case (meansparsglobal(i)%rank)
------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(460) : Error: The case-value must be of the same type as the case-expr.   [2]
                case (2)
----------------------^
C:\XBeach-May 27-2011\varoutput.f90(463) : Warning: Arguments' data types are incompatible with intrinsic procedure, assume EXTERNAL.   [SQRT]
                         write(indextomeanunit(i),rec=itm)sqrt(meansparsglobal(i)%variancesquareterm2d)
----------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(463) : Error: This name does not have a type, and must have an explicit type.   [SQRT]
                         write(indextomeanunit(i),rec=itm)sqrt(meansparsglobal(i)%variancesquareterm2d)
----------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(467) : Warning: Arguments' data types are incompatible with intrinsic procedure, assume EXTERNAL.   [INT]
                         write(indextomeanunit(i),rec=itm)atan2(int(meansparsglobal(i)%mean2d)/0.d000000001-1, &
----------------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(467) : Error: This name does not have a type, and must have an explicit type.   [INT]
                         write(indextomeanunit(i),rec=itm)atan2(int(meansparsglobal(i)%mean2d)/0.d000000001-1, &
----------------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(468) : Warning: Arguments' data types are incompatible with intrinsic procedure, assume EXTERNAL.   [MOD]
                                                                mod(meansparsglobal(i)%mean2d,1.d0)*0.d001-1)
----------------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(468) : Error: The intrinsic data types of the arguments must be the same.   [MOD]
                                                                mod(meansparsglobal(i)%mean2d,1.d0)*0.d001-1)
----------------------------------------------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(468) : Error: This name does not have a type, and must have an explicit type.   [MOD]
                                                                mod(meansparsglobal(i)%mean2d,1.d0)*0.d001-1)
----------------------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(473) : Error: An array-valued operand is required in this context.
                      where(meansparsglobal(i)%min2d>0.99d0*huge(0.d0))
----------------------------------------------------^
C:\XBeach-May 27-2011\varoutput.f90(474) : Error: This name must be the name of a variable with a derived type (structure type)   [MEANSPARSGLOBAL]
                         meansparsglobal(i)%min2d=-999.d0
-------------------------^
C:\XBeach-May 27-2011\varoutput.f90(474) : Error: An array assignment statement is required in this context.   [MIN2D]
                         meansparsglobal(i)%min2d=-999.d0
--------------------------------------------^
(994) : Severe: Too many errors, exiting
output.i90
C:\XBeach-May 27-2011\output.F90(10) : Error: Error in opening the Library module file.   [TIMESTEP_MODULE]
use timestep_module
----^
C:\XBeach-May 27-2011\output.F90(12) : Error: Error in opening the Library module file.   [FORTOUTPUT_MODULE]
use fortoutput_module
----^
C:\XBeach-May 27-2011\output.F90(21) : Error: This derived type name has not been declared.   [TIMEPARS]
  type(timepars), intent(in)           :: tpar
-------^
C:\XBeach-May 27-2011\output.F90(17) : Warning: This name has not been given an explicit type.   [TPAR]
subroutine output_init(sglobal, slocal, par, tpar)
---------------------------------------------^
C:\XBeach-May 27-2011\output.F90(50) : Error: Error in opening the Library module file.   [MEANS_MODULE]
    use means_module
--------^
C:\XBeach-May 27-2011\output.F90(56) : Error: This derived type name has not been declared.   [TIMEPARS]
    type(timepars)                      :: tpar
---------^
C:\XBeach-May 27-2011\output.F90(48) : Error: This name does not have a type, and must have an explicit type.   [TPAR]
subroutine output(sglobal,s,par,tpar,update)
--------------------------------^
C:\XBeach-May 27-2011\output.F90(110) : Error: This derived type name has not been declared.   [TIMEPARS]
    type(timepars)                      :: tpar
---------^
C:\XBeach-May 27-2011\output.F90(101) : Error: This name does not have a type, and must have an explicit type.   [TPAR]
subroutine output_error(s, sglobal, par, tpar)
-----------------------------------------^
readtide.i90
readwind.i90
roelvink.i90
wave_instationary.i90
wave_stationary.i90
wave_timestep.i90
xbeach.i90
C:\XBeach-May 27-2011\xbeach.f90(14) : Error: Error in opening the Library module file.   [TIMESTEP_MODULE]
use timestep_module
----^
C:\XBeach-May 27-2011\xbeach.f90(18) : Error: Error in opening the Library module file.   [MEANS_MODULE]
use means_module
----^
C:\XBeach-May 27-2011\xbeach.f90(19) : Error: Error in opening the Library module file.   [OUTPUT_MODULE]
use output_module
----^
C:\XBeach-May 27-2011\xbeach.f90(24) : Error: This derived type name has not been declared.   [TIMEPARS]
type(timepars)                                      :: tpar
-----^
C:\XBeach-May 27-2011\xbeach.f90(82) : Error: This name does not have a type, and must have an explicit type.   [TPAR]
call timestep_init(par, tpar)
------------------------^
C:\XBeach-May 27-2011\xbeach.f90(121) : Error: Keyword arguments are invalid without an explicit interface.   [IERR]

   call timestep(s,par,tpar,it,ierr=error)
-------------------------------^
Error executing df.exe.

xbeach.exe - 69 error(s), 19 warning(s)

Fedor Baart

unread,
May 30, 2011, 3:57:42 AM5/30/11
to xbe...@googlegroups.com
Hi PF,

I think this error indicates that your compiler doesn't allow for allocatable arrays as part of derived type. This is part of the fortran 95 specification. The rest of the errors originate from this one I think. 

C:\XBeach-May 27-2011\timestep.f90(94) : Error: This attribute specification is not valid for a component definition statement.   [ALLOCATABLE]
  real*8,dimension(:),allocatable     :: tpg ! global output times

On windows we tested XBeach with compaq visual fortran and intel fortran.  Do you perhaps have access to one of these compilers? 

An alternative would be to rewrite the timepar structure  into using pointers. 

Cheers,

Fedor
Reply all
Reply to author
Forward
0 new messages