📄 bound.f90
字号:
!------------------------------------------------------------------------------!! 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -