Slide 26
Slide 26 text
Vic
Structure
modified
with
AMBHAS
• Vic_image.c
– MPI
ini7aliza7on
– AMBHAS:
define
structures,
readGlobalData,
allocate
memory
for
structures,
GW_read_data,
link_AMBHAS_VIC_Domain,
GW_ini7alise
– Time
loop
• vic_force.c
(read
atmospheric
forcing
data)
• vic_image_run.c
(Run
VIC
for
one
7mestep
and
store
output
data)
– Loop
over
each
ac7ve
cell
» Vic_run
(Subrou7ne
that
controls
the
model
core,
solves
energy
and
water
balance
models,
and
frozen
soil)
• For
each
vegeta7on
type
• For
each
eleva7on
band
• Surface_fluxes.c
(computes
all
surface
fluxes)
• Runoff.c
(calculates
infiltra7on
and
runoff
from
the
surface,
gravity
driven
drainage
between
all
soil
layers
and
baseflow
from
the
boXom
layer)
-‐>
modified
to
calculate
recharge
instead
of
baseflow
» Put_data
(converts
data
units
and
stores
results
in
an
array
for
later
output)
• AMBHAS:
Get_VIC_Data_Into_AMBHAS
• AMBHAS:
GW_read_Ts,
calculateGWFlow,
GW_write_output
• AMBHAS:
Get_AMBHAS_Output_Into_VIC
• Vic_write_output.c
(writes
output
data)
– AMBHAS:
writeObsBH,
GW_write_output
– Finalise
(stop
the
7mer,
start
final
7mer,
clean
up,
finalise
MPI,
stop
final
7mer,
stop
all
7mer,
write
7ming
info)