The invention discloses a flood routing
analysis method based on a just-in-time compiling technology, and the method mainly comprises the steps: setting a
hardware acceleration environment, appointing calculation time and an iteration step length, loading a grid topological structure, an initial
water level, an initial flow velocity, a grid roughness field and a model boundary condition, code optimization is performed on a finite volume method and an HLLC shallow water equation solving
algorithm based on a just-in-time compiling technology, and parallel acceleration
simulation of flood routing is realized. According to the method, a
Python language with high
interpretability is adopted to compile shallow water equation solving codes, the codes are generated into
machine codes through an instant compiling technology during operation so as to greatly improve the code operation efficiency, different hardware platforms such as a CPU, a GPU or a
CUDA can be selected to carry out parallel acceleration solving on the shallow water equation, simple and efficient
simulation of flood routing is achieved, and the method is suitable for large-scale popularization and application. The method has the advantages of high
code readability, high performance and the like.