亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cvt_mesh.f90

?? 一個三維有限元網格自動剖分源代碼程序
?? F90
?? 第 1 頁 / 共 2 頁
字號:
  if ( 0 < fixed_num ) then    allocate ( fixed(1:dim_num,1:fixed_num) )  else  end if  allocate ( nearest(1:sample_num) )  allocate ( point(1:dim_num,1:n) )  allocate ( point_new(1:dim_num,1:n) )  allocate ( sample(1:dim_num,1:sample_num) )!!  Determine the amount by which the region should be expanded.!  call p00_box ( test, lo, hi )  box_volume = product ( hi(1:3) - lo(1:3) )  h = ( box_volume / real ( n, kind = 8 ) )**( 1.0D+00 / 3.0D+00 )  write ( *, '(a)' ) ' '  write ( *, '(a,i12)' ) '  Number of points requested = ', n  write ( *, '(a,i12)' ) '  Number of CVT iterations = ', iteration_max  write ( *, '(a,i12)' ) '  Number of CVT sample points = ', sample_num  write ( *, '(a,g14.6)' ) '  Using expansion increment H = ', h!!  Get the fixed points.!  if ( 0 < fixed_num ) then    call p00_fixed_points ( test, fixed_num, fixed(1:dim_num,1:fixed_num) )  end if!!  Initialize the sampling points.!  if ( 0 < fixed_num ) then    point(1:dim_num,1:fixed_num) = fixed(1:dim_num,1:fixed_num)  end if  call p00_sample ( test, n-fixed_num, seed, point(1:dim_num,fixed_num+1:n) )  call r8mat_transpose_print_some ( dim_num, n, point, &    1, 1, 2, 10, '  Initial points (first 10 only)' )  write ( *, '(a)' ) ' '  write ( *, '(a)' ) '  Estimated Voronoi energy:'  write ( *, '(a)' ) ' '!!  Carry out an iteration!  do iteration = 1, iteration_max!!  Get sample points from a "slightly enlarged" region.!    write ( *, * ) 'DEBUG1'    call p00_sample_h1 ( test, sample_num, h, seed, sample )!!  Find the nearest cell generator.!    write ( *, * ) 'DEBUG2'    call find_closest ( dim_num, n, sample_num, point, sample, nearest )!!  Add X to the averaging data for CELL_GENERATOR(*,NEAREST).!    write ( *, * ) 'DEBUG3'    point_new(1:dim_num,1:n) = 0.0D+00    count(1:n) = 0    energy = 0.0D+00    do j = 1, sample_num      energy = energy &        + sum ( ( point(1:dim_num,nearest(j)) - sample(1:dim_num,j) )**2 )      point_new(1:dim_num,nearest(j)) = point_new(1:dim_num,nearest(j)) &        + sample(1:dim_num,j)      count(nearest(j)) = count(nearest(j)) + 1    end do!!  Compute the new generators.!  But the fixed points don't move.!    write ( *, * ) 'DEBUG4'    do j = fixed_num+1, n      if ( count(j) /= 0 ) then        point_new(1:dim_num,j) = point_new(1:dim_num,j) &          / real ( count(j), kind = 8 )      end if    end do!!  Project generators back into region.!    write ( *, * ) 'DEBUG5'    call p00_boundary_project ( test, n, point_new )    energy = energy / real ( sample_num, kind = 8 )    write ( *, '(2x,i6,2x,g14.6)' ) iteration, energy!!  Update.!    point(1:dim_num,fixed_num+1:n) = point_new(1:dim_num,fixed_num+1:n)  end do  if ( test < 10 ) then    write ( file_txt_name, '(a,i1,a)' ) 'cvt_p0', test, '_test03.txt'  else    write ( file_txt_name, '(a,i2,a)' ) 'cvt_p', test, '_test03.txt'  end if  call cvt_write ( dim_num, n, seed_start, seed, sample_num, iteration_max, &    energy, point, file_txt_name, comment )  write ( *, '(a)' ) ' '  write ( *, '(a)' ) '  TEST03: wrote data to "' &    // trim ( file_txt_name ) // '".'  deallocate ( count )  if ( 0 < fixed_num ) then    deallocate ( fixed )  end if  deallocate ( nearest )  deallocate ( point )  deallocate ( point_new )   deallocate ( sample )  returnendsubroutine cvt_write ( dim_num, n, seed_start, seed, sample_num, &  iteration_max, energy, point, file_out_name, comment )!*****************************************************************************80!!! CVT_WRITE writes a CVT dataset to a file.!!  Discussion:!!    The initial lines of the file are comments, which begin with a!    '#' character.!!    Thereafter, each line of the file contains the M-dimensional!    components of a CVT generator.!!  Licensing:!!    This code is distributed under the GNU LGPL license. !!  Modified:!!    02 March 2005!!  Author:!!    John Burkardt!!  Parameters:!!    Input, integer DIM_NUM, the spatial dimension.!!    Input, integer N, the number of points.!!    Input, integer SEED_START, the initial random number seed.!!    Input, integer SEED, the current random number seed.!!    Input, integer SAMPLE_NUM, the number of sampling points used on!    each CVT iteration.!!    Input, integer STEP, the number of iterations used in the CVT!    calculation.!!    Input, real ( kind = 8 ) ENERGY, the estimated Voronoi energy.!!    Input, real ( kind = 8 ) CELL_GENERATOR(DIM_NUM,N), the points.!!    Input, character ( len = * ) FILE_OUT_NAME, the name of!    the output file.!!    Input, logical COMMENT, is true if comments may be included.!  implicit none  integer dim_num  integer n  logical comment  real ( kind = 8 ) energy  character ( len = * ) file_out_name  integer file_out_unit  integer ios  integer iteration_max  integer j  real ( kind = 8 ) point(dim_num,n)  integer sample_num  integer seed  integer seed_start  character ( len = 40 ) string  call get_unit ( file_out_unit )  open ( unit = file_out_unit, file = file_out_name, &    status = 'replace', iostat = ios )  if ( ios /= 0 ) then    write ( *, '(a)' ) ' '    write ( *, '(a)' ) 'CVT_WRITE - Fatal error!'    write ( *, '(a)' ) '  Could not open the output file:'    write ( *, '(a)' ) '  "' // trim ( file_out_name ) //'".'    stop  end if  if ( comment ) then    call timestring ( string )    write ( file_out_unit, '(a)'       ) '#  ' // trim ( file_out_name )    write ( file_out_unit, '(a)'       ) &      '#  created by routine CVT_WRITE in CVT_TETRA.F90'    write ( file_out_unit, '(a)'       ) '#  at ' // trim ( string )    write ( file_out_unit, '(a)'       ) '#'    write ( file_out_unit, '(a,i12)'   ) &      '#  Spatial dimension DIM_NUM = ', dim_num    write ( file_out_unit, '(a,i12)'   ) '#  Number of points N =  ', n    write ( file_out_unit, '(a,g14.6)' ) '#  EPSILON (unit roundoff) = ', &      epsilon ( point(1,1) )    write ( file_out_unit, '(a,i12)'   ) '#  Initial SEED = ', seed_start    write ( file_out_unit, '(a,i12)'   ) '#  Current SEED = ', seed    write ( file_out_unit, '(a,i12)'   ) &      '#  Number of sample points =       ', sample_num    write ( file_out_unit, '(a,i12)'   ) &      '#  Number of sampling iterations = ', iteration_max    write ( file_out_unit, '(a,g14.6)' ) &      '#  Estimated Voronoi energy =      ', energy    write ( file_out_unit, '(a)'       )  '#'  end if  write ( string, '(a,i3,a)' ) '(', dim_num, '(f12.6,2x))'  do j = 1, n    write ( file_out_unit, string ) point(1:dim_num,j)  end do  close ( unit = file_out_unit )  returnendsubroutine find_closest ( dim_num, n, sample_num, point, sample, nearest )!*****************************************************************************80!!! FIND_CLOSEST finds the closest point to each sample.!!  Licensing:!!    This code is distributed under the GNU LGPL license. !!  Modified:!!    16 June 2004!!  Author:!!    John Burkardt!!  Parameters:!!    Input, integer DIM_NUM, the spatial dimension.!!    Input, integer N, the number of points.!!    Input, integer SAMPLE_NUM, the number of samples.!!    Input, real ( kind = 8 ) POINT(DIM_NUM,N), the point coordinates.!!    Input, real ( kind = 8 ) SAMPLE(DIM_NUM,SAMPLE_NUM), the sample!    coordinates.!!    Output, integer NEAREST(SAMPLE_NUM), the index of the nearest!    point to each sample.!  implicit none  integer dim_num  integer n  integer sample_num  real ( kind = 8 ) dist  real ( kind = 8 ) dist_min  integer i  integer j  integer nearest(sample_num)  real ( kind = 8 ) point(dim_num,n)  real ( kind = 8 ) sample(dim_num,sample_num)  do i = 1, sample_num    dist_min = huge ( dist_min )    nearest(i) = -1    do j = 1, n      dist = sum ( ( point(1:dim_num,j) - sample(1:dim_num,i) )**2 )      if ( dist < dist_min ) then        dist_min = dist        nearest(i) = j      end if    end do  end do  returnendsubroutine get_unit ( iunit )!*****************************************************************************80!!! GET_UNIT returns a free FORTRAN unit number.!!  Discussion:!!    A "free" FORTRAN unit number is an integer between 1 and 99 which!    is not currently associated with an I/O device.  A free FORTRAN unit!    number is needed in order to open a file with the OPEN command.!!    If IUNIT = 0, then no free FORTRAN unit could be found, although!    all 99 units were checked (except for units 5, 6 and 9, which!    are commonly reserved for console I/O).!!    Otherwise, IUNIT is an integer between 1 and 99, representing a!    free FORTRAN unit.  Note that GET_UNIT assumes that units 5 and 6!    are special, and will never return those values.!!  Licensing:!!    This code is distributed under the GNU LGPL license. !!  Modified:!!    18 September 2005!!  Author:!!    John Burkardt!!  Parameters:!!    Output, integer IUNIT, the free unit number.!  implicit none  integer i  integer ios  integer iunit  logical lopen  iunit = 0  do i = 1, 99    if ( i /= 5 .and. i /= 6 .and. i /= 9 ) then      inquire ( unit = i, opened = lopen, iostat = ios )      if ( ios == 0 ) then        if ( .not. lopen ) then          iunit = i          return        end if      end if    end if  end do  returnendsubroutine timestring ( string )!*****************************************************************************80!!! TIMESTRING writes the current YMDHMS date into a string.!!  Example:!!    STRING = '31 May 2001   9:45:54.872 AM'!!  Licensing:!!    This code is distributed under the GNU LGPL license. !!  Modified:!!    06 August 2005!!  Author:!!    John Burkardt!!  Parameters:!!    Output, character ( len = * ) STRING, contains the date information.!    A character length of 40 should always be sufficient.!  implicit none  character ( len = 8 ) ampm  integer d  integer h  integer m  integer mm  character ( len = 9 ), parameter, dimension(12) :: month = (/ &    'January  ', 'February ', 'March    ', 'April    ', &    'May      ', 'June     ', 'July     ', 'August   ', &    'September', 'October  ', 'November ', 'December ' /)  integer n  integer s  character ( len = * ) string  integer values(8)  integer y  call date_and_time ( values = values )  y = values(1)  m = values(2)  d = values(3)  h = values(5)  n = values(6)  s = values(7)  mm = values(8)  if ( h < 12 ) then    ampm = 'AM'  else if ( h == 12 ) then    if ( n == 0 .and. s == 0 ) then      ampm = 'Noon'    else      ampm = 'PM'    end if  else    h = h - 12    if ( h < 12 ) then      ampm = 'PM'    else if ( h == 12 ) then      if ( n == 0 .and. s == 0 ) then        ampm = 'Midnight'      else        ampm = 'AM'      end if    end if  end if  write ( string, '(i2,1x,a,1x,i4,2x,i2,a1,i2.2,a1,i2.2,a1,i3.3,1x,a)' ) &    d, trim ( month(m) ), y, h, ':', n, ':', s, '.', mm, trim ( ampm )  returnend

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美制服另类| 琪琪久久久久日韩精品| 欧美国产日韩亚洲一区| 亚洲精品在线一区二区| 欧美岛国在线观看| 日韩午夜精品视频| 2022国产精品视频| 久久精品人人做| 欧美国产日韩一二三区| 国产精品福利影院| 亚洲免费看黄网站| 亚洲成人精品在线观看| 日韩精品亚洲专区| 精品一区在线看| 国产suv精品一区二区6| 99久久99久久久精品齐齐| 色综合一区二区| 精品婷婷伊人一区三区三| 欧美精品一级二级| 日韩视频免费观看高清完整版在线观看| 欧美精品在线观看播放| 精品处破学生在线二十三| 国产午夜精品一区二区三区视频| 国产精品你懂的| 亚洲色图视频免费播放| 亚洲网友自拍偷拍| 久久99国产精品成人| 国产精品99久久久久久久女警| www.久久久久久久久| 在线亚洲一区观看| 日韩女优毛片在线| 国产精品久久毛片| 亚洲成精国产精品女| 精品制服美女久久| 色综合天天做天天爱| 欧美日本韩国一区二区三区视频| 精品国产一区二区三区不卡| 日韩一区有码在线| 五月天激情综合| 国产盗摄一区二区| 欧美视频精品在线观看| 欧美精品一区二区在线播放| 中文字幕中文乱码欧美一区二区| 亚洲国产成人av好男人在线观看| 卡一卡二国产精品 | 国产91丝袜在线播放九色| 91免费看`日韩一区二区| 欧美一区二区在线看| 国产精品初高中害羞小美女文| 亚洲精品自拍动漫在线| 极品销魂美女一区二区三区| 色婷婷精品久久二区二区蜜臀av| 日韩欧美资源站| 亚洲综合一区在线| 国产一区二区三区观看| 欧美日本一区二区| 亚洲婷婷在线视频| 激情综合色播激情啊| 在线视频国内自拍亚洲视频| 精品处破学生在线二十三| 亚洲一级二级在线| 成人精品国产一区二区4080| 欧美一区二区三区四区在线观看| 亚洲视频精选在线| 国产成人三级在线观看| 在线电影院国产精品| 亚洲精品第一国产综合野| 国产精品一区免费在线观看| 欧美一区二区三区免费观看视频 | 日本v片在线高清不卡在线观看| 成人av电影在线播放| 欧美电视剧在线观看完整版| 亚洲一区av在线| www.欧美.com| 中文字幕精品综合| 国产一区不卡视频| 日韩小视频在线观看专区| 亚洲国产成人av好男人在线观看| www.66久久| 国产亚洲精品7777| 国产综合成人久久大片91| 欧美一区二区福利在线| 亚洲成人精品在线观看| 91激情五月电影| 中文字幕中文字幕在线一区| 国产成人三级在线观看| 久久久99精品免费观看不卡| 久久精品国产99| 欧美一区二区成人| 日韩精品福利网| 欧美人与性动xxxx| 日韩中文字幕一区二区三区| 色婷婷精品久久二区二区蜜臀av | 天天影视网天天综合色在线播放 | 久久久午夜精品| 久久99精品久久久久久久久久久久| 欧美精品精品一区| 午夜精品久久久久久久蜜桃app| 色噜噜久久综合| 亚洲一级电影视频| 在线一区二区三区四区| 亚洲已满18点击进入久久| 色素色在线综合| 亚洲黄色尤物视频| 欧美午夜不卡在线观看免费| 亚洲综合丁香婷婷六月香| 欧美性色欧美a在线播放| 亚洲国产精品自拍| 91麻豆精品国产91久久久久| 日本中文字幕一区二区视频| 91麻豆精品国产自产在线| 蜜桃久久精品一区二区| 久久综合五月天婷婷伊人| 国产在线视频精品一区| 久久久国产一区二区三区四区小说| 国产成人av一区二区三区在线| 中文字幕精品三区| 91美女视频网站| 亚洲成av人片在线| 日韩精品在线一区| 国产成人在线视频播放| 国产精品福利影院| 欧美日韩综合色| 久久狠狠亚洲综合| 中文一区一区三区高中清不卡| 97精品久久久久中文字幕| 亚洲一区二区视频在线观看| 欧美喷水一区二区| 国产河南妇女毛片精品久久久| 中文字幕一区二区三区不卡 | 欧美白人最猛性xxxxx69交| 国内精品伊人久久久久av一坑| 中文字幕av一区二区三区 | 国产精品每日更新| 色婷婷亚洲精品| 美腿丝袜亚洲一区| 中文字幕成人网| 欧美私人免费视频| 激情五月激情综合网| 亚洲欧洲精品成人久久奇米网| 欧美综合亚洲图片综合区| 美女视频网站黄色亚洲| 欧美国产精品中文字幕| 欧美伊人久久大香线蕉综合69 | 91麻豆产精品久久久久久 | 精品视频一区二区三区免费| 久久99在线观看| 亚洲免费观看高清完整版在线观看熊| 欧美蜜桃一区二区三区| 国产高清不卡一区| 亚洲午夜一区二区三区| 久久久久久久久久久久电影 | 国产精品嫩草99a| 欧美日韩国产片| 国产99久久久国产精品潘金网站| 亚洲精品乱码久久久久久黑人| 日韩精品一区二区三区视频| 一本一道久久a久久精品 | 日韩精品一区二区三区在线观看 | 国产精品一区二区三区乱码| 亚洲在线视频免费观看| 久久综合精品国产一区二区三区 | 亚洲国产精品精华液网站| 国产日韩欧美电影| 7777精品伊人久久久大香线蕉完整版| 大尺度一区二区| 麻豆精品一区二区av白丝在线| 亚洲三级在线播放| 国产欧美一区二区精品性| 欧美精品成人一区二区三区四区| www.成人在线| 国产盗摄一区二区三区| 免费人成精品欧美精品| 亚洲免费电影在线| 国产蜜臀av在线一区二区三区| 91精品国产综合久久福利| 91免费在线看| 成人免费va视频| 国产精品一区二区视频| 六月婷婷色综合| 亚洲国产日韩av| 亚洲精品视频在线看| 国产精品美女久久久久久| 26uuu国产电影一区二区| 欧美丰满嫩嫩电影| 在线视频你懂得一区二区三区| av高清不卡在线| 不卡电影免费在线播放一区| 国产福利不卡视频| 国产一区二区三区高清播放| 久久精品免费观看| 美国欧美日韩国产在线播放| 日韩专区一卡二卡| 日本欧美加勒比视频| 亚洲高清三级视频| 亚洲一卡二卡三卡四卡| 亚洲综合网站在线观看| 亚洲激情五月婷婷| 亚洲午夜免费视频| 亚洲二区在线观看|