Repository navigation
Open
Labels
cleanupclean up the codes (remove unnecessary lines, indentation, styles)clean up the codes (remove unnecessary lines, indentation, styles)enhancementImproving usability, performance or other types of enhancementsImproving usability, performance or other types of enhancementsinfrastructureissues or code changes related to code organization, data structure, refactoringissues or code changes related to code organization, data structure, refactoringlow priorityno immediate attention neededno immediate attention neededno answer changechange does not change any simulation result - should be bit-to-bit identicalchange does not change any simulation result - should be bit-to-bit identical
Description
Erik (@ekluzek) suggested this, and use write_restart_pio.f90 etc.
pure integer function get_routing_index(routing_method_name) result(route_indices)
implicit none
integer(i4b) :: route_indices(3) ! route_indices(1)->routeRunoff index, route_indices(2)->volume index, route_indices(2)->inflow index
select case(routing_method_name)
case(accumRunoff)
route_indices(:) = -1
case(kinematicWaveTracking)
route_indices(1) = ixRFLX%KWTroutedRunoff
route_indices(2) = ixRFLX%KWTvolume
route_indices(3) = ixRFLX%KWTinflow
case(ImpulseResponseFunction)
route_indices(1) = ixRFLX%IRFroutedRunoff
route_indices(2) = ixRFLX%IRFvolume
route_indices(3) = ixRFLX%IRFinflow
case (...)
.....
default
route_indices(:) = -999
end select
end function get_routing_indexWith this function, may allow us to use do loop to write output etc.
Metadata
Metadata
Assignees
Labels
cleanupclean up the codes (remove unnecessary lines, indentation, styles)clean up the codes (remove unnecessary lines, indentation, styles)enhancementImproving usability, performance or other types of enhancementsImproving usability, performance or other types of enhancementsinfrastructureissues or code changes related to code organization, data structure, refactoringissues or code changes related to code organization, data structure, refactoringlow priorityno immediate attention neededno immediate attention neededno answer changechange does not change any simulation result - should be bit-to-bit identicalchange does not change any simulation result - should be bit-to-bit identical
Activity