New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
#657 (Proposition to declare a variable for character size) – NEMO

Opened 14 years ago

Closed 13 years ago

Last modified 2 years ago

#657 closed Enhancement (fixed)

Proposition to declare a variable for character size

Reported by: olegallou Owned by: nemo
Priority: lowest Milestone:
Component: OCE Version: v3.3
Severity: Keywords: OPA v3.3
Cc:

Description

In Nemo, we declare the character with :
example :
sbcrnf.F90: CHARACTER(len=32) :: cl_rnfile

and for any use, we want have more than 32 character.

We propose to declare in par_kind.F90 the variable :

INTEGER, PUBLIC, PARAMETER
& !: Character section jp_lenmax = 256 !: Lenght of Character strings

and use this variable for all the character declaration.

Commit History (1)

ChangesetAuthorTimeChangeLog
2498gm2010-12-21T15:22:05+01:00

v3.3beta: #657 declare a variable for character size

Change History (2)

comment:1 Changed 13 years ago by gm

  • Resolution set to fixed
  • Status changed from new to closed
  • Type changed from Bug to Enhancement
  • Version changed from v3.2 to v3.3

That's a very good idea !

In par_kind.F90, we add a variable "lc" :

INTEGER, PUBLIC, PARAMETER ::   lc = 256   !: Lenght of Character strings

and modify the module_example:

CHARACTER(lc) ::   clname   ! clname description (default length, lc, is 256, see par_kind.F90)
We start to introduce CHARACTER(lc) in  3 modules (nemogcm.F90, IOM/in_out_manager.F90, oce.F90). This has to be generalised to all the modules.

See changeset:2498

comment:2 Changed 2 years ago by nemo

  • Keywords OPA v3.3 added
Note: See TracTickets for help on using tickets.