Skip to content

UK-FVCOM-Usergroup/FVCOM_community

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FVCOM 5.0.1 - European community edition

This is a a fork of the ocean model FVCOM with various community maintained developments.

The main model repository can be found at https://github.com/FVCOM-GitHub/FVCOM.git and http://fvcom.smast.umassd.edu/

In this repository we maintain:

main - a fork of main from the FVCOM repository main_community (default) - the main branch as above with a small number of minor changes detailed below, all the feature branches are built on this FVCOM-fabm - contains an integration with FABM, a widely used biogeochemical model coupler, primarily maintained by Jim Clark (PML) FVCOM-energy - contains code for modelling of structures in the marine environment as a momentum sink, primarily maintained by Michela de Dominicis (NOC) FVCOM-ice - contains code to represent ice shelves, primarily maintained by Qin Zhou (ApN)

Users are welcome to start their own feature branches, please prepend them with 'dev_' until they are mature.

Additional repositories in the FVCOM community usergroup contain idealised test cases and code for compiling with cmake.

Community edits

Required libraries

Compilers FVCOM codes are mainly written in Fortran 90 and C language. We recommend users to use

Required/Optional libraries

Installation

  • make depend
    Generate the module dependencies of FVCOM codes. This step is required only when there are new codes added.
  • edit make.inc
    The ‘make.inc’ file includes all the settings for compiling FVCOM. This file needs to be edited correctly based on users’ interest of simulation, before the FVCOM codes are compiled. Users need to edit three parts in this file, including library environments, control flags, and compiler settings.
  • make clean
    When the ‘make.inc’ file is modified, this step is necessary to make the model compiled from the beginning with the modified settings.
  • make
    Compile the FVCOM codes. You should see the executable file ‘fvcom’ when the compilation is successful. FVCOM can be compiled in a parallel mode, with the following command:
    make -j N
    where N is the integer number specifying the maximum number of cores used for compiling the FVCOM source codes. Based on the tests with Intel® Xeon® CPU E5-2640, the total time of compiling FVCOM is 120 s with one core. The time can be saved 40% with two cores and 54% with three cores. When more than three cores are applied, there is no large improvement on the compiling speed. The results could vary with different cpus and different flags selected. However, we recommend users compile FVCOM with 2 or 3 cores to save the compiling time.

Set up and run

  • Step 1: make a folder ‘run’ and copy/link the executable file ‘fvcom’ to this folder.
  • Step 2: prepare all required input files
  • Step 3: create the namelist file with the name of CASENAME_run.nml. You can get a blank namelist file by
    ./fvcom –create_namelist
  • Step 4: run the model.
    • To run FVCOM with single cpu
      ./fvcom –casename=CASENAME
    • To run FVCOM in the parallel way
      mpiexec ./fvcom –casename=CASENAME
      or
      mpiexec ./fvcom –casename=CASENAME
      where CASENAME is the name of simulation case and must be consistent with the prefix of the namelist file. For example, the namelist file is named as ‘gom_run.nml’, then CASENAME is ‘gom’.

About

Fork of FVCOM with branches for community add ons

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Fortran 99.0%
  • Other 1.0%