MODFLOW-USGS / modpath-v7

MODPATH version 7 -- Particle tracking for MODFLOW-2005, MODFLOW-USG, and MODFLOW-6
11 stars 5 forks source link

Identifying CBB file, cross-sectional models #5

Closed aprovost-usgs closed 6 years ago

aprovost-usgs commented 6 years ago

TB reported (email to modflow@usgs.gov 9/28/3018) a problem with cross-sectional models and proposed a solution:

I have found a problem with MODPATH v7.2.001. For cross-sectional models using 1 row and using the traditional CBB format, the test in subroutine pr_ProcessRecordHeaders fails to identify that it is a valid CBB file (as it fails the header%TextLabel(firstChar:lastChar) .eq. 'FLOW FRONT FACE', hasFlowFrontFace test) in BudgetReader.f90

Solution Rename hasFlowFrontFace to hasFlowFace Change if(header%TextLabel(firstChar:lastChar) .eq. 'FLOW FRONT FACE') then To if(header%TextLabel(firstChar:lastChar) .eq. 'FLOW FRONT FACE' .or. header%TextLabel(firstChar:lastChar) .eq. 'FLOW RIGHT FACE') then

aprovost-usgs commented 6 years ago

Chris followed up and confirmed with TB that the problem occurs only for the traditional budget file without the COMPACT option.

aprovost-usgs commented 6 years ago

Essentially did what TB had suggested in pr_ProcessRecordHeaders. Successfully tested on a simple problem to make sure the CCB file was recognized as valid.