Revision of wFMM - A Wideband Fast Multipole Method for the two-dimensional complex Helmholtz equation

被引:2
|
作者
Cho, Min Hyung [1 ]
Cai, Wei [1 ]
机构
[1] Univ N Carolina, Dept Math & Stat, Charlotte, NC 28223 USA
关键词
Wideband Fast Multipole Method; Helmholtz equation; Fast solver;
D O I
10.1016/j.cpc.2011.09.012
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
The Wideband Fast Multipole Method for the two-dimensional complex Helmholtz equation program is updated. The new version uses significantly less memory than the original version and uses almost constant memory for all the wavenumbers k when the number of particles is given. The CPU time is also improved slightly. Additionally, the memory leak problems and errors from external variables when it is used in an iterative solver are fixed. The new version wFMM and other useful codes are available from the website http://fastmultipole.org/. New version program summary Manuscript Title: Revision of wFMM - A Wideband Fast Multipole Method for the two-dimensional complex Helmholtz equation Authors: Min Hyung Cho and Wei Cai Program Title: 2D-WFMM Journal Reference: Catalogue identifier: AEHI_v2_0 Program summary URL: http://cpc.cs.qub.ac.uk/summaries/AEHl_v2_0.html Program obtainable from: CPC Program Library, Queen's University, Belfast, N. Ireland Licensing provisions: Standard CPC licence, http://cpc.cs.qub.ac.uk/licence/licence.html No. of lines in distributed program, including test data, etc.: 4669 No. of bytes in distributed program, including test data, etc.: 46849 Programming language: C Computer: Any Operating system: Any operating system with gcc compiler. For the multi-thread computing, the gcc version 4.4 or newer is recommended RAM: Depending on the number of particles N and wavenumber k Number of processors used: Multi-core processors with shared memory Keywords: Wideband Fast Multipole Method, Helmholtz equation, Fast solver Classification: 4.8, 4.12 External routines/libraries: OpenMP (http://openmp.org/wp/) Subprograms used: None Catalogue identifier of previous version: AEHl_v1_0 Journal reference of previous version: Computer Physics Communications 181 (12) (2010) 2086 Does the new version supersede the previous version?: Yes Nature of problem: Evaluate the interaction between N particles governed by the fundamental solution of 2D complex Helmholtz equation with wide range of wavenumber k. Solution method: Multilevel Fast Multipole Algorithm in a hierarchical quad-tree data structure with a cutoff level, which combines low frequency method and high frequency method. Reasons for the new version: Improve the efficiency of the program including memory usage, repeated use in an iterative solver or other programs, and a minor speed up. Summary of revisions: First, the tree searching method in downward pass is modified to accommodate the higher level of tree structure and save memory. The original version used a queue data structure to visit [GRAPHICS] the tree from the top to bottom level. However, in this new version, the queue method is replaced with a simple recursion algorithm. As a result, the code uses less memory, and the high level tree refinement becomes more efficient. Secondly, memory leaks and external variables that caused problems in the repeated usage in an iterative solver, are fixed. The original version had no problem as stand alone software. However, when it was used repeatedly in other codes, the code did not release the memory after it was called. This causes significant problems for large matrix systems. In the new version, all the memory allocations are tracked and freed as soon as they become unnecessary. Consequently, the new version uses almost constant memory for all wavenumbers k when the number of particles N is fixed. The new version does not stack up the memory in an iterative solver. Also, in the original version, several external variables were not initialized when the code was called multiple times. This resulted in incorrect numerical solutions and a memory allocation error in worst cases. In the new version, external variables are converted to internal ones. The code is also tested by calling it multiple times in other solvers (results will be published soon). As a minor improvement, some of the complex number operations are simplified, and the running time is slightly reduced. Finally, a simple makefile is added in the package for the easy compile. "make" will compile one of the test cases described in the readme.rtf file. The new version of wFMM is compared with the original version in Tables 1 and 2 with the same parameters presented in the original paper. Numerical tests are conducted with a machine consisting of two quad-core Intel Xeon 3.00 GHz processors, 32 GB memory, and a gcc version 4.5.1 running on Fedora release 11. All the results in the tables can be obtained by modifying the testrun.c file. Both tables show the significant memory savings and minor CPU time reduction for both real and complex k for the number of particles N = 490000. Running time: The CPU time depends on the number of particles N and its distribution, wavenumber k, and number of cores in a machine. The computation time increases as N log N. (C) 2011 Elsevier B.V. All rights reserved.
引用
收藏
页码:446 / 447
页数:2
相关论文
共 50 条
  • [1] A Wideband Fast Multipole Method for the two-dimensional complex Helmholtz equation
    Cho, Min Hyung
    Cai, Wei
    [J]. COMPUTER PHYSICS COMMUNICATIONS, 2010, 181 (12) : 2086 - 2090
  • [2] Solution of two-dimensional Helmholtz equation by multipole theory method
    Zheng, Q
    Xie, F
    Lin, W
    [J]. JOURNAL OF ELECTROMAGNETIC WAVES AND APPLICATIONS, 1999, 13 (02) : 205 - 220
  • [3] A wideband fast multipole method for the Helmholtz equation in three dimensions
    Cheng, Hongwei
    Crutchfield, William Y.
    Gimbutas, Zydrunas
    Greengard, Leslie F.
    Ethridge, J. Frank
    Huang, Jingfang
    Rokhlin, Vladimir
    Yarvin, Norman
    Zhao, Junsheng
    [J]. JOURNAL OF COMPUTATIONAL PHYSICS, 2006, 216 (01) : 300 - 325
  • [4] A fast multipole boundary integral equation method for two-dimensional diffusion problems
    Yang, Ming
    Song, Jiming
    Chen, Zhigang
    Nakagawa, Norio
    [J]. Review of Progress in Quantitative Nondestructive Evaluation, Vols 26A and 26B, 2007, 894 : 294 - 301
  • [5] A wideband fast multipole algorithm for two-dimensional volume integral equations
    Nakashima, N.
    Tateiba, M.
    [J]. INTERNATIONAL JOURNAL FOR NUMERICAL METHODS IN ENGINEERING, 2009, 77 (02) : 195 - 213
  • [6] A wideband Fast Multipole Method for the Helmholtz kernel: Theoretical developments
    Chaillat, Stephanie
    Collino, Francis
    [J]. COMPUTERS & MATHEMATICS WITH APPLICATIONS, 2015, 70 (04) : 660 - 678
  • [7] A broadband fast multipole accelerated boundary element method for the three dimensional Helmholtz equation
    Gumerov, Nail A.
    Duraiswami, Ramani
    [J]. JOURNAL OF THE ACOUSTICAL SOCIETY OF AMERICA, 2009, 125 (01): : 191 - 205
  • [8] Solution of two-dimensional Laplace equation by multipole theory method
    Zheng, Q
    Hou, D
    Xie, F
    Lin, W
    [J]. JOURNAL OF ELECTROMAGNETIC WAVES AND APPLICATIONS, 1999, 13 (08) : 1061 - 1076
  • [9] FOURIER-BASED FAST MULTIPOLE METHOD FOR THE HELMHOLTZ EQUATION
    Cecka, Cris
    Darve, Eric
    [J]. SIAM JOURNAL ON SCIENTIFIC COMPUTING, 2013, 35 (01): : A79 - A103
  • [10] On optimal convergence rates of a two-dimensional fast multipole method
    Xiang, Shuhuang
    Liu, Guidong
    [J]. APPLIED MATHEMATICS LETTERS, 2018, 76 : 74 - 80