Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

ARWpost is asking to increase MAX_NVARS

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

sinisters93

New member
[sahir@un01 ARWpost]$ ./ARWpost.exe

!!!!!!!!!!!!!!!!
ARWpost v3.1
!!!!!!!!!!!!!!!!

FOUND the following input files:
/scratch/sahir/largefile/WRF-Chem/WRFV3_ANTHRO/WRFV3_ANTH/run/wrfout_d01_2018-08-01_00:00:00

START PROCESSING DATA

Processing time --- 2018-08-01_00:00:00
Found the right date - continue
ERROR: Number of processed variables exceeds MAX_NVARS, please check and adjust MAX_NVARS in src/output_module.F90

------------------------------------------------------------------
I have increased that to 2000, still the error remains
------------------------------------------------------------------


MODULE output_module

USE input_module
USE module_model_basics
USE module_arrays
USE module_interp

integer, parameter :: MAX_NVARS = 2000 !!! maximum number of variables, increase if needed
integer :: time, rec, ivars !!! process time ; rec in .dat file ; variables in .dat file
integer :: cunit, dunit !!! .ctl and .dat output files
character (len=128) :: ctlfile, datfile
character (len=200), dimension(300) :: ctl_var_string !!! List of fields for .ctl file
character (len=2000) :: could_not_find !!! Keep list of what we wrote out
character (len=19) :: tdef_date !!! Output start date
character (len=40) :: tdef !!! tdef string in .ctl file
character (len=10), dimension(300) :: varnames
integer :: numvars
 
Hi,
After you increased MAX_NVARS, did you recompile ARWpost? You'll need to recompile to include the modification.
 
Top