⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 def_output.f90

📁 国外大名顶顶的“台风”并行计算流体力学CFD软件的早期版本的源代码
💻 F90
字号:
!------------------------------------------------------------------------------!! Procedure : def_output                  Auteur : J. Gressier!                                         Date   : Novembre 2002! Fonction                                Modif  : (cf historique)!   Traitement des parametres du fichier menu principal!   Parametres principaux du projet!! Defauts/Limitations/Divers :!!------------------------------------------------------------------------------!subroutine def_output(block, world) use RPMuse TYPHMAKEuse OUTPUTuse VARCOMuse MODWORLDuse MENU_GENimplicit none! -- Declaration des entrees --type(rpmblock), target :: block! -- Declaration des sorties --type(st_world) :: world! -- Declaration des variables internes --type(rpmblock), pointer  :: pblock, pcour  ! pointeur de bloc RPMinteger                  :: nkey, nkey2    ! nombre de clefsinteger                  :: i, iocharacter(len=dimrpmlig) :: str            ! chaine RPM intermediaire! -- Debut de la procedure --call print_info(2,"* Definition des sorties resultats")! -- Recherche du BLOCK:OUTPUTpblock => blockcall seekrpmblock(pblock, "OUTPUT", 0, pcour, nkey)!!if (nkey /= 1) call erreur("lecture de menu", &!                           "bloc OUTPUT inexistant ou surnumeraire")world%noutput = nkey !DEV2602    world%noutput = 1allocate(world%output(world%noutput)) !DEV2602 allocate(world%output(1))do io = 1, world%noutput !DEV2602   ! -- lecture du format  call seekrpmblock(pblock, "OUTPUT", io, pcour, nkey)   call rpmgetkeyvalstr(pcour, "FORMAT", str)  world%output(io)%format = cnull  if (samestring(str,"TECPLOT")) world%output(io)%format = fmt_TECPLOT  if (samestring(str,"VIGIE"))   world%output(io)%format = fmt_VIGIE  if (samestring(str,"VTK"))     world%output(io)%format = fmt_VTK  if (world%output(io)%format == cnull) call erreur("lecture de menu","format de fichier inconnu")  ! -- lecture du nom de fichier  call rpmgetkeyvalstr(pcour, "FILE", str)  world%output(io)%fichier = str  ! -- Determination du type de sortie : aux noeuds du maillage   !    ou au centre des cellules (par defaut au centre)  call rpmgetkeyvalstr(pcour, "TYPE", str, "CENTER")  if (samestring(str,"NODE"))   world%output(io)%type = outp_NODE  if (samestring(str,"CENTER")) world%output(io)%type = outp_CENTER  if (samestring(str,"CORRECTION")) world%output(io)%type = outp_COR !DEV602  if (samestring(str,"FLUX"))   world%output(io)%type = outp_FLUX !DEV2602  if (samestring(str,"WALLTEMP")) world%output(io)%type = outp_TEMPINTER !DEV1404enddo!-----------------------------endsubroutine def_output!------------------------------------------------------------------------------!! Historique des modifications!! nov  2002 : creation de la procedure! oct  2003 : choix des sorties NODE ou CENTER pour Tecplot!------------------------------------------------------------------------------!

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -