Opened 11 years ago

Closed 11 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: release-3.3
Severity: Keywords:
Cc: Branch review:
MP ready?: Task progress:


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 :

& !: Character section jp_lenmax = 256 !: Lenght of Character strings

and use this variable for all the character declaration.

Commit History (1)


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

Change History (1)

comment:1 Changed 11 years ago by gm

  • Resolution set to fixed
  • Status changed from new to closed
  • Type changed from Bug to Enhancement
  • Version changed from nemo_v3_2 to nemo_v3_3_beta

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
Note: See TracTickets for help on using tickets.