bound.f90
来自「国外大名顶顶的“台风”并行计算流体力学CFD软件的早期版本的源代码」· F90 代码 · 共 92 行
F90
92 行
!------------------------------------------------------------------------------!! MODULE : BOUND Auteur : J. Gressier! Date : Octobre 2002! Fonction Modif :! Bibliotheque de procedures et fonctions pour la gestion des champs! des differents solveurs!! Defauts/Limitations/Divers :! Historique :!!------------------------------------------------------------------------------!module BOUNDuse TYPHMAKE ! Definition de la precision!use EQNS ! Definition des champs pour equations de Navier-Stokesuse EQKDIF ! Definition des champs pour equations de diffusionimplicit none! -- Variables globales du module -------------------------------------------! -- DECLARATIONS -----------------------------------------------------------!------------------------------------------------------------------------------!! Definition de la structure ST_BOUND : Champ physique !------------------------------------------------------------------------------!type st_bound integer :: idim, jdim, kdim ! indices max des cellules ! n dimension spatialeendtype st_bound! -- INTERFACES -------------------------------------------------------------interface new module procedure new_boundendinterfaceinterface delete module procedure delete_boundendinterface! -- Fonctions et Operateurs ------------------------------------------------! -- IMPLEMENTATION ---------------------------------------------------------contains!------------------------------------------------------------------------------!! Procedure : allocation d'une structure BOUND!------------------------------------------------------------------------------!subroutine new_bound(bound, idim, jdim, kdim)implicit nonetype(st_bound) :: bound ! champ a creerinteger :: idim, jdim, kdim ! dimension du champ internelogical :: allocgrad ! allocation des gradientsinteger :: imin, jmin, kmininteger :: imax, jmax, kmax bound%idim = idim bound%jdim = jdim bound%kdim = kdimendsubroutine new_bound!------------------------------------------------------------------------------!! Procedure : desallocation d'une structure BOUND!------------------------------------------------------------------------------!subroutine delete_bound(bound)implicit nonetype(st_bound) :: boundendsubroutine delete_boundendmodule BOUND
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?