Ask Your Question
0

Why I am getting such error when compiling using jobcomp.

asked 2022-12-07 08:29:46 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >5 is welcome to improve it.

gfortran -c -O2 -mcmodel=medium -fdefault-real-8 -fdefault-double-8 -std=legacy partit._.f -o partit.o partit._.f:2359:31:

             if (size .gt. 8*max_buff_size) then
                           1

Error: Arithmetic overflow at (1) partit._.f:2363:37:

  &              'available:',   8*max_buff_size, 'Bytes.',
                                 1

Error: Arithmetic overflow at (1) partit._.f:2505:33:

               if (size .gt. 8*max_buff_size) then
                             1

Error: Arithmetic overflow at (1) partit._.f:2509:37:

  &              'available:',   8*max_buff_size, 'Bytes.',
                                 1

Error: Arithmetic overflow at (1) partit._.f:2512:21:

               endif
                 1

Error: Expecting END DO statement at (1) partit._.f:2565:15:

         endif       ! <--series(i) .or. rec.eq.1
           1

Error: Expecting END DO statement at (1) Makefile:245: recipe for target 'partit' failed make: * [partit] Error 1

edit retag flag offensive close merge delete

4 answers

Sort by » oldest newest most voted
0

answered 2023-08-14 15:58:31 +0100

Hello, What was the final solution for this issue? I am currently facing the same problem.

edit flag offensive delete link more

Comments

there was the problem of netcdf4 libraries, gfortran and their correct path in Ubuntu Linux system. after successful installation of netcdf4 libraries I did not get error and jobcomp compiled successfully.

IMRAN5379 gravatar imageIMRAN5379 ( 2023-08-14 16:14:22 +0100 )edit

Thanks I'll check

Seba Loyola gravatar imageSeba Loyola ( 2023-08-14 16:26:56 +0100 )edit
0

answered 2022-12-08 21:30:56 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >5 is welcome to improve it.

Hi I have just switched to CROCO, jobcomp used in ROMS works fine but in Croco, I am getting this error though I have checked both (ROMS & CROCO) partit.F files and compared them. below is the attached cppdef.h file used in Croco.

! $Id: cppdefs.h 1628 2015-01-10 13:53:00Z marchesiello $ ! !====================================================================== ! CROCO is a branch of ROMS developped at IRD and INRIA, in France ! The two other branches from UCLA (Shchepetkin et al) ! and Rutgers University (Arango et al) are under MIT/X style license. ! CROCO specific routines (nesting) are under CeCILL-C license. ! ! CROCO website : http://www.croco-ocean.org !====================================================================== ! /* This is "cppdefs.h": MODEL CONFIGURATION FILE ==== == ============ ===== ============= ==== / / SELECT ACADEMIC TEST CASES */

undef BASIN /* Basin Example */

undef CANYON /* Canyon Example */

undef EQUATOR /* Equator Example */

undef INNERSHELF /* Inner Shelf Example */

undef SINGLE_COLUMN /* 1DV vertical mixing Example */

undef RIVER /* River run-off Example */

undef OVERFLOW /* Gravitational/Overflow Example */

undef SEAMOUNT /* Seamount Example */

undef SHELFRONT /* Shelf Front Example */

undef SOLITON /* Equatorial Rossby Wave Example */

undef THACKER /* Thacker wetting-drying Example */

undef UPWELLING /* Upwelling Example */

undef VORTEX /* Baroclinic Vortex Example */

undef INTERNAL /* Internal Tide Example */

undef IGW /* COMODO Internal Tide Example */

undef JET /* Baroclinic Jet Example */

undef SHOREFACE /* Shoreface Test Case on a Planar Beach */

undef RIP /* Rip Current Test Case */

undef SANDBAR /* Bar-generating Flume Example */

undef SWASH /* Swash Test Case on a Planar Beach */

undef TANK /* Tank Example */

undef MOVING_BATHY /* Moving Bathymetry Example */

undef ACOUSTIC /* Acoustic wave Example */

undef GRAV_ADJ /* Graviational Adjustment Example */

undef ISOLITON /* Internal Soliton Example */

undef KH_INST /* Kelvin-Helmholtz Instability Example */

undef TS_HADV_TEST /* Horizontal tracer advection Example */

undef DUNE /* Dune migration Example */

undef SED_TOY /* 1DV sediment toy Example */

undef TIDAL_FLAT /* 2DV tidal flat Example */

undef ESTUARY /* 3D tidal estuary Example */

/* ... OR REALISTIC CONFIGURATIONS */

undef COASTAL /* COASTAL Applications */

define REGIONAL /* REGIONAL Applications */

if defined REGIONAL

/* !==================================================================== ! REGIONAL (realistic) Configurations !==================================================================== ! !---------------------- ! BASIC OPTIONS !---------------------- ! / / Configuration Name */

undef BENGUELA_LR

define N_BOB_LR

                  /* Parallelization */

undef OPENMP

define MPI

                  /* Non-hydrostatic option */

undef NBQ

undef CROCO_QH

                  /* Nesting */

undef AGRIF

undef AGRIF_2WAY

                  /* OA and OW Coupling via OASIS (MPI) */

undef OA_COUPLING

undef OW_COUPLING

ifdef OW_COUPLING

undef OW_COUPLING_FULL

endif

                  /* Wave-current interactions */

undef MRL_WCI

                  /* Open Boundary Conditions */

undef TIDES

undef OBC_EAST

undef OBC_WEST

undef OBC_NORTH

define OBC_SOUTH

                  /* Applications */

undef BIOLOGY

undef FLOATS

undef STATIONS

undef PASSIVE_TRACER

undef SEDIMENT

undef MUSTANG

undef BBL

                  /* I/O server */

undef XIOS

                  /* Calendar */

undef USE_CALENDAR

                  /* dedicated croco.log file */

undef LOGFILE

/*
!------------------------------------------------- ! PRE-SELECTED OPTIONS ! ! ADVANCED OPTIONS ARE IN CPPDEFS_DEV.H !------------------------------------------------- / / Parallelization */

ifdef MPI

undef PARALLEL_FILES

undef NC4PAR

undef MPI_NOLAND

undef MPI_TIME

endif

undef AUTOTILING

                  /* Non-hydrostatic options */

ifdef NBQ

define W_HADV_TVD

define W_VADV_TVD

endif

                  /* Grid configuration */

define CURVGRID

define SPHERICAL

define MASKING

undef WET_DRY

define NEW_S_COORD

                  /* Model dynamics */

define SOLVE3D

define UV_COR

define UV_ADV

                  /* Equation of State */

define SALINITY

define NONLIN_EOS

                  /* Surface Forcing */

/* ! Bulk flux algorithms (options) ! by default : COARE3p0 paramet with GUSTINESS effects ! ! To change bulk param, define one the following keys (exclusive) : ! - define BULK_ECUMEV0 : ECUME_v0 param ! - define BULK_ECUMEV6 : ECUME_v6 param ! - define BULK_WASP : WASP param ! Note : gustiness effects can be added for all params ! by defining BULK_GUSTINESS */

define BULK_FLUX

ifdef BULK_FLUX

undef BULK_ECUMEV0

undef BULK_ECUMEV6

undef BULK_WASP

define BULK_GUSTINESS

define BULK_LW ...

(more)
edit flag offensive delete link more
0

answered 2022-12-08 14:19:28 +0100

Rachid gravatar image

Hi

There is an old version of jobcomp in croco/OCEAN directory called something like partit.F_optim_nocompatible_bryfile . You can remplace OCEAN/partit.F by this old version(overwrite it). Just a guess

Rachid

edit flag offensive delete link more
0

answered 2022-12-07 14:45:06 +0100

Gui gravatar image

Hi,

Maybe an incompatibility between options and gfortran version... Can you send us the version of gfortran you have, just typing : gfortran --version

Again , Do you already compile croco with this version of gfortran for an another case and did it work well without the same errors you had ?

Also, can you post the cppdefs.h file, just to test it.

Thanks

Guillaume

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2022-12-07 08:29:46 +0100

Seen: 2,879 times

Last updated: Aug 14