Search is not available for this dataset
repo
stringlengths
2
152
⌀
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
fmm3dbie
fmm3dbie-master/matlab/+polytens/cheb_vals2coefs.m
function amat = cheb_vals2coefs(norder,uvs) bmat = polytens.cheb_coefs2vals(norder,uvs); amat = inv(bmat); end
118
28.75
48
m
fmm3dbie
fmm3dbie-master/matlab/+polytens/cheb_weights.m
function wts = cheb_weights(norder) [~,w] = chebpts(norder+1,[-1,1],1); wts = w'*w; wts = wts(:).'; end
116
22.4
39
m
fmm3dbie
fmm3dbie-master/matlab/+polytens/lege_coefs2vals.m
function bmat = lege_coefs2vals(norder,uvs) bmat = polytens.lege_pols(norder,uvs); bmat = bmat.'; end
109
26.5
43
m
fmm3dbie
fmm3dbie-master/matlab/+polytens/lege_nodes.m
function xvals = lege_nodes(norder) [x] = legpts(norder+1); [yy,xx] = meshgrid(x); xx = xx(:); yy = yy(:); xvals = zeros(2,(norder+1)*(norder+1)); xvals(1,:) = xx; xvals(2,:) = yy; end
212
22.666667
43
m
fmm3dbie
fmm3dbie-master/matlab/+polytens/lege_pols.m
function p = lege_pols(norder,uv) [~,m] = size(uv); legpols_u = zeros(m,norder+1); legpols_v = zeros(m,norder+1); u = uv(1,:); v = uv(2,:); u = u(:); v = v(:); legpols_u(:,1+0) = 1; legpols_v(:,1+0) = 1; legpols_u(:,1+1) = u; legpols_v(:,1+1) = v; pkp1_u = legpols_u(:,2); ...
969
20.086957
57
m
fmm3dbie
fmm3dbie-master/matlab/+polytens/lege_vals2coefs.m
function amat = lege_vals2coefs(norder,uvs) bmat = polytens.lege_coefs2vals(norder,uvs); amat = inv(bmat); end
118
28.75
48
m
fmm3dbie
fmm3dbie-master/matlab/+polytens/lege_weights.m
function wts = lege_weights(norder) [~,w] = legpts(norder+1); wts = w'*w; wts = wts(:).'; end
106
20.4
35
m
fmm3dbie
fmm3dbie-master/matlab/@surfer/affine_transf.m
function [objout,varargout] = affine_transf(obj,mat,shift) % % performs an affine transformation of the given object % objout = obj; npatches = obj.npatches; norders = obj.norders; srcvals = obj.srcvals; srccoefs = obj.srccoefs; weights = obj.weights; if (nargin < 2) ret...
2,262
24.715909
73
m
fmm3dbie
fmm3dbie-master/matlab/@surfer/area.m
function a = area(obj) a = sum(cat(1,obj.weights{:})); end
62
20
35
m
fmm3dbie
fmm3dbie-master/matlab/@surfer/conv_rsc_to_spmat.m
function spmat = conv_rsc_to_spmat(S,row_ptr,col_ind,wnear) [~,ndim] = size(wnear); ixyzs = S.ixyzs(:); npatches = S.npatches; npols = ixyzs(2:end)-ixyzs(1:end-1); npts_col = npols(col_ind); [nt,~] = size(row_ptr); ntarg = nt-1; nrep = zeros(ntarg,1); istarts = row_ptr(1:end-1); ...
1,052
26
71
m
fmm3dbie
fmm3dbie-master/matlab/@surfer/ellipsoid.m
function [obj] = ellipsoid(abc,rmax,norder,nref) % Generate the triangulation of an ellipsoid % by considering it an axissymmetric problem % % All input arguments are optional, default values are indicated in % brackets % % Input % - abc: double(3) semi-axes along coordinate directions of the ellipsoid % ([...
3,600
24.006944
74
m
fmm3dbie
fmm3dbie-master/matlab/@surfer/extract_arrays.m
function [srcvals,srccoefs,norders,ixyzs,iptype,wts] = extract_arrays(obj) srcvals = [obj.srcvals{:}]; srccoefs = [obj.srccoefs{:}]; ixyzs = obj.ixyzs; iptype = obj.iptype; norders = obj.norders; wts = cat(1,obj.weights{:}); end
252
30.625
74
m
fmm3dbie
fmm3dbie-master/matlab/@surfer/load_from_file.m
function obj = load_from_file(ff) dat = load(ff); norder = dat(1); npatches = dat(2); npols = (norder+1)*(norder+2)/2; npts = npatches*npols; srcvals = dat(3:end); srcvals = reshape(srcvals,[npts,12]); srcvals = srcvals'; obj = surfer(npatches,norder,srcvals); end
306
24.583333
46
m
fmm3dbie
fmm3dbie-master/matlab/@surfer/oversample.m
function [objout,varargout] = oversample(obj,nover) % % Oversamples the given geometry given a current discretization % and a patchwise oversampling parameter, or a common oversampling % order for all patches % npatches = obj.npatches; npts = obj.npts; if(length(nover)==1) noveruse = nover*ones(n...
4,158
30.748092
81
m
fmm3dbie
fmm3dbie-master/matlab/@surfer/plot.m
function plot(obj, varargin) %PLOT Plot the surface. parser = inputParser; parser.KeepUnmatched = true; parser.addParameter('surface', 'auto', @(s) contains(lower(s), {'auto', 'on', 'off'})); parse(parser, varargin{:}); showSurface = parser.Results.surface; varargin = namedargs2cell(parser.Unmatched); defaultStyle ...
2,315
26.571429
87
m
fmm3dbie
fmm3dbie-master/matlab/@surfer/scatter.m
function scatter(obj,s,c,varargin) % plots values of a surfer object, with colors specified by data ifhold = ishold(); x = obj.r(1,:); y = obj.r(2,:); z = obj.r(3,:); if (nargin <2) s = 0.2; c = z; elseif (nargin <3) c = z; end if (isempty({varargin})) scatter3(x,y,z,s,c,'filled'); else scatter3...
386
12.821429
64
m
fmm3dbie
fmm3dbie-master/matlab/@surfer/sphere.m
function [obj] = sphere(norder,nu,nref) % Generate the triangulation of a sphere % through projecting out a cube discretized with % nu \times nu patches in each direction, refined % by nref levels of refinement. % % % Input % - norder: order of discretization on each patch % - nu: number of patches in u,v direction o...
4,323
22.247312
64
m
fmm3dbie
fmm3dbie-master/matlab/@surfer/sphere_quad.m
function [obj] = sphere_quad(norder,nu,nref,iptype) % Generate the triangulation of a sphere % through projecting out a cube discretized with % nu \times nu patches in each direction, refined % by nref levels of refinement. % % % Input % - norder: order of discretization on each patch % - nu: number of patches in u,v...
4,912
23.083333
68
m
fmm3dbie
fmm3dbie-master/matlab/@surfer/surfer.m
classdef surfer %SURFER class which describes a surface divided into triangles/quads (patches). % On each patch the surface is represented by the values of its position, % its two tangential derivatives, and the corresponding basis function % expansions on either an RV grid on triangles or a tensor product GL/Chebysh...
5,245
32.202532
80
m
fmm3dbie
fmm3dbie-master/matlab/src/extract_targ_array.m
function [targs] = extract_targ_array(targinfo) % % extract_targ_array % subroutine to extract flattened target array % from its struct format % % Syntax % targs = extract_targ_arrays(targinfo) % % Input arguments % targinfo - targinfo struct % % Output arguments % targs (ndtarg,ntarg) - flatt...
842
25.34375
81
m
fmm3dbie
fmm3dbie-master/matlab/src/get_oversampling_parameters.m
function [novers,varargout] = get_oversampling_parameters(S,Q,eps) % % get_oversampling_parameters % subroutine to estimate the oversampling paramters for a given % surface, and set of quadrature corrections stored in Q % % Syntax % Q = get_oversampling_parameters(S,Q,eps) % % Input arguments % * S: ...
2,135
32.904762
323
m
fmm3dbie
fmm3dbie-master/matlab/src/get_surface_laplacian.m
function [surf_lap_p] = get_surface_laplacian(S,p) % % % surf_lap_p = get_surface_laplacian(S,p) % This subrorutine evaluates the surface laplacian of a given % function p % % Input arguments: % * S: surfer object, see README.md in matlab for details % * p: input function on surface % % Output argumen...
1,537
26.464286
193
m
fmm3dbie
fmm3dbie-master/matlab/src/init_empty_quadrature_correction.m
function Q = init_empty_quadrature_correction(targinfo,opts) Q = []; [~,ntarg] = size(targinfo.r); Q.targinfo = targinfo; Q.row_ptr = ones(ntarg+1,1); Q.nnz = 0; Q.col_ind = 0; ifcomplex = 0 Q.wnear = 0; if(isfield(opts,'type')) if(strcmpi(opts.type,'complex')) Q.wne...
500
20.782609
60
m
fmm3dbie
fmm3dbie-master/matlab/test/helm3d_dirichlet_routsTest.m
% % This file tests the Helmholtz single layer % potenial on the sphere % % Additional dependencies: chebfun % addpath(genpath('~/git/fmm3dbie/matlab')) % For triangles S = surfer.ellipsoid([1,1,1],0.5,6,0); % For quads S = surfer.sphere_quad(6,1,1); tic, [srcvals,~,~,~,~,wts] = extract_arrays(S); toc; % tic, plot(...
1,233
17.69697
60
m
fmm3dbie
fmm3dbie-master/matlab/test/test_koorn_routs.m
addpath '../'; f = @(u,v) sin(3.2*u + 4.1*v); norder = 14; rnodes = koorn.rv_nodes(norder); rwts = koorn.rv_weights(norder); plot(rnodes(1,:),rnodes(2,:),'kx'); umat = koorn.vals2coefs(norder,rnodes); vmat = koorn.coefs2vals(norder,rnodes); vmax = @(u) 1-u; Q = integral2(f,0,1,0,vmax); fvals = f(rnodes(1,:),rnodes(2,:...
700
17.945946
42
m
fmm3dbie
fmm3dbie-master/matlab/test/test_polytens_routs.m
addpath '../'; %% Legendre tests f = @(u,v) cos(3.2*u + 4.1*v); norder = 14; rnodes = polytens.lege_nodes(norder); rwts = polytens.lege_weights(norder); plot(rnodes(1,:),rnodes(2,:),'kx'); umat = polytens.lege_vals2coefs(norder,rnodes); vmat = polytens.lege_coefs2vals(norder,rnodes); Q = integral2(f,-1,1,-1,1); fva...
1,488
20.271429
53
m
fmm3dbie
fmm3dbie-master/matlab/test/test_surf_lap.m
addpath(genpath('~/git/fmm3dbie/matlab')) % sphere(norder,nu,nref) S = surfer.sphere(6,1,3); ndeg = 3; f = spherefun.sphharm(ndeg,1); rhs = f(S.r(1,:),S.r(2,:),S.r(3,:)); surf_lap_f = get_surface_laplacian(S,rhs); wts = cat(1,S.weights{:}); rfac = -(ndeg+0.0)*(ndeg+1.0); errf = norm((surf_lap_f - rfac*rhs).*sqrt(w...
378
18.947368
49
m
fmm3dbie
fmm3dbie-master/matlab/test/test_surfer_plot.m
addpath(genpath('~/git/fmm3dbie/matlab')) close('all') B = surfer.load_from_file('~/git/fmm3dbie/geometries/sphere_768_o03.go3'); figure clf tic, plot(B); toc; [srcvals,srccoefs,norders,ixyzs,iptype,wts] = extract_arrays(B); novers = randi([4,6],B.npatches,1); [Bover,xmat] = oversample(B,novers); figure clf plot(Bove...
377
17.9
74
m
fmm3dbie
fmm3dbie-master/perf-test/aquad_helm_stell_perf_datgen.f
implicit real *8 (a-h,o-z) real *8, allocatable :: srcvals(:,:),srccoefs(:,:),targs(:,:) real *8, allocatable :: wts(:) real *8, allocatable :: cms(:,:),rads(:),rad_near(:) real *8 errs(6),ts(2) real *8, allocatable :: rfacs(:,:) character *100 fname integer ipars(2) ...
10,176
23.173397
71
f
fmm3dbie
fmm3dbie-master/perf-test/aquad_helm_stell_perf_test.f
implicit real *8 (a-h,o-z) real *8, allocatable :: srcvals(:,:),srccoefs(:,:),targs(:,:) real *8, allocatable :: wts(:) real *8, allocatable :: cms(:,:),rads(:),rad_near(:) real *8 errs(6),ts(2) real *8, allocatable :: rfacs(:,:) character *100 fname integer ipars(2) ...
10,748
24.838942
71
f
fmm3dbie
fmm3dbie-master/python/gmsh_to_go3.py
# ----------------------------------------------------------------------------- # # Gmsh to Go3 # # ----------------------------------------------------------------------------- # Usage: # python3 gmsh_to_go3.py gmsh_filename # output: gmsh_filename.go3 # one needs the kexp and srout module # run `make python-gmsh` ...
8,724
37.777778
120
py
fmm3dbie
fmm3dbie-master/python/gmsh_to_go3_numba.py
# ----------------------------------------------------------------------------- # # Gmsh to Go3 # # ----------------------------------------------------------------------------- # Usage: # python3 gmsh_to_go3_numba.py gmsh_filename # output: gmsh_filename.go3 # one needs the kexp and srout module # run `make python-...
6,669
32.857868
105
py
fmm3dbie
fmm3dbie-master/python/gmsh_to_go3_v2.py
# ----------------------------------------------------------------------------- # # Gmsh to Go3 # # ----------------------------------------------------------------------------- # Usage: # python3 gmsh_to_go3_v2.py gmsh_filename # output: gmsh_filename.go3 # one needs the kexp and srout module # run `make python-gms...
4,635
32.114286
116
py
fmm3dbie
fmm3dbie-master/python/helm3d_dirsolver_block_demo.py
import numpy as np import numpy.linalg as la import fmm3dbie as h3 import fmm3dpy as fmm3d x = np.loadtxt('../geometries/sphere_192_o03.go3') ifwrite = 1 norder = int(x[0]) npatches = int(x[1]) npols = int((norder+1)*(norder+2)/2) npts = npatches*npols # setup geometry in the correct format norders = norder*np.one...
2,270
28.115385
92
py
fmm3dbie
fmm3dbie-master/python/helm3d_dirsolver_csc_demo.py
import numpy as np import numpy.linalg as la import fmm3dbie as h3 import fmm3dpy as fmm3d # setup the geomtry for sphere # number of refinements nref = 2 # order of discretization norder = 3 # The following derived quantites must not be changed npatches = int(12*4**int(nref)) npols = int((norder+1)*(norder+2)/2) n...
2,201
27.597403
92
py
fmm3dbie
fmm3dbie-master/python/setup.py
import setuptools import string import os from numpy.distutils.core import setup from numpy.distutils.core import Extension from sys import platform pkg_name = "bie-solvers3dpy" list_files=[] list_files.append('../src/helm_wrappers/helm_comb_dir.f') list_files.append('../src/common/sparse_reps.f') list_files.append('...
2,778
28.56383
94
py
fmm3dbie
fmm3dbie-master/python/st3d_velsolver_demo.py
import numpy as np import numpy.linalg as la import fmm3dbie as h3 import fmm3dpy as fmm3d # setup the geomtry for sphere # number of refinements nref = 1 # order of discretization norder = 3 # The following derived quantites must not be changed npatches = int(12*4**int(nref)) npols = int((norder+1)*(norder+2)/2) n...
4,132
25.158228
94
py
fmm3dbie
fmm3dbie-master/src/README.md
The files are organized into the following folders fmm_wrappers - contains wrappers which are modified version of the fmm wrappers and call one of the guru fmm interfaces under the hood lap_wrappers - contains near quadrature extraction routines, and layer potential application routines for different integral...
1,441
32.534884
57
md
fmm3dbie
fmm3dbie-master/src/common/chebexps.f
c c cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc c c this is the end of the debugging code and the beginning c of the actual chebychev expansion routine c ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc c c c subroutine...
29,978
22.476116
75
f
fmm3dbie
fmm3dbie-master/src/common/common_Maxwell.f90
subroutine get_RHS_EMFIE(P0,vf,ns,srcvals,zk,RHS) implicit none !List of calling arguments integer ( kind = 4 ), intent(in) :: ns real ( kind = 8 ), intent(in) :: P0(3) complex ( kind = 8 ), intent(in) :: vf(3) real ( kind = 8 ), intent(in) :: srcvals(12,ns) complex ( kind = 8 ), intent(in) :: zk complex ( kin...
32,088
29.215631
100
f90
fmm3dbie
fmm3dbie-master/src/common/cumsum.f
c Copyright (C) 2020-2021: The Simons Fonudation, Inc., Travis Askham, c Michael O'Neil, and Felipe Vico. c c This file contains the following user callable c routines: c c * cumsum: c computes the cumulative sum (aka prefix c sum or scan) of an array of integers. This code c does some memory managem...
5,858
23.4125
70
f
fmm3dbie
fmm3dbie-master/src/common/dlaran.f
DOUBLE PRECISION FUNCTION DLARAN( ISEED ) * * -- LAPACK auxiliary routine (version 3.0) -- * Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd., * Courant Institute, Argonne National Lab, and Rice University * February 29, 1992 * * .. Array Arguments .. INTEGER ISEED( 4 )...
2,651
28.466667
72
f
fmm3dbie
fmm3dbie-master/src/common/dotcross3d.f
c (c) Zydrunas Gimbutas c c This file contains the following user callable routines: c c * dot_prod3d: c compute the dot product of two vectors c * zdot_prod3d: c computes the dot product of two complex vectors (no conjugation) c * dzdot_prod3d: c computes the dot product of a real vector and a c...
8,181
19.979487
78
f
fmm3dbie
fmm3dbie-master/src/common/get_fmm_thresh.f
subroutine get_fmm_thresh(nds,ns,src,ndt,nt,trg,thresh) c--------------------------------------- c This subroutine returns the threshold used by an fmm c for ignoring self interactions for a given collection of sources c and targets. c c The rotuine identifies the size of the smallest bounding cube c and set...
7,007
25.748092
75
f
fmm3dbie
fmm3dbie-master/src/common/hkrand.f
c c real *8 function hkrand(iseed_hk) implicit real *8 (a-h,o-z) dimension iseed(4) data iseed/0,0,0,1/ save c if( iseed_hk .ne. 0 ) then iseed(1)=0 iseed(2)=0 iseed(3)=0 iseed(4)=mod(2*iseed_hk+1,4096) endif c hkrand=dlaran...
357
16.9
41
f
fmm3dbie
fmm3dbie-master/src/common/incoming_fields.f90
subroutine point_source_scalar_helmholtz(P0,ns,points,normals,zk,pot,dpot_dnormal) implicit none !List of calling arguments integer ( kind = 4 ), intent(in) :: ns real ( kind = 8 ), intent(in) :: P0(3) real ( kind = 8 ), intent(in) :: points(3,ns) real ( kind = 8 ), intent(in) :: normals(3,ns) complex ( kind...
14,888
23.368249
122
f90
fmm3dbie
fmm3dbie-master/src/common/lapack_f77.f
* * This file contains some of the f77 style routines in blas * with some of the checks disabled -- Note it is the users * responsibility to send in correct parameters in these routines * * * * * SUBROUTINE dgemm_f77(TRANSA,TRANSB,M,N,K,ALPHA,A,LDA,B,LDB, 1 BETA,C,LDC) * .. Scalar Arguments .. ...
35,125
27.744681
80
f
fmm3dbie
fmm3dbie-master/src/common/lapack_wrap.f90
! (c) Mike O'Neil ! ! this file contains basic common-sense wrappers for lapack routines, ! that way you never need to call the complicated routine with ! several parameters... ! ! gaussian elimination ! ! dgausselim - real matrix, real rhs, real solution ! dgausselim_zrhs - real matrix, complex rhs, compex sol...
16,240
17.413832
75
f90
fmm3dbie
fmm3dbie-master/src/common/lapack_wrap_64.f90
! (c) Mike O'Neil ! ! this file contains basic common-sense wrappers for lapack routines, ! that way you never need to call the complicated routine with ! several parameters... ! ! gaussian elimination ! ! dgausselim - real matrix, real rhs, real solution ! dgausselim_zrhs - real matrix, complex rhs, compex sol...
17,922
17.031187
75
f90
fmm3dbie
fmm3dbie-master/src/common/legeexps.f
c (c) Vladimir Rokhlin c c c This file contains a set of subroutines for the handling c of Legendre expansions. It contains 19 subroutines that are c user-callable. Following is a brief description of these c subroutines. c c legeexps - constructs Legendre nodes, and corresponding Gau...
62,440
24.898382
78
f
fmm3dbie
fmm3dbie-master/src/common/polytens.f
c c c c this file contains routines for working with tensor c product gauss-legendre nodes and polynomials in 2 and c 3 dimensions; also provides some related spectral c differentiation operators c c-------------------------------------------------------------- c c CONVENTIONS c c ndeg refers to...
43,229
26.01875
77
f
fmm3dbie
fmm3dbie-master/src/common/prini_new.f
c c ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc c c this is the end of the debugging code and the beginning of the c printing subroutines proper c cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc c c c This file contains 18 user-callable su...
7,081
19.707602
78
f
fmm3dbie
fmm3dbie-master/src/common/rigidbodies.f
subroutine dapplyrigidbody3d(r0,v,omega,nr,r,u) c c set c c u(1:3,i) = v + omega \times (r(1:3,i)-r0) c c for each i (in the least squares sense) c c input: c c v - real *8 (3), the translation part of the c formula above c omega - real *8 (3), the vector determining ...
4,476
21.385
62
f
fmm3dbie
fmm3dbie-master/src/common/rotmat_gmres.f
c (C) The Simons Foundation, Inc., Michael O'Neil, and Felipe Vico c c c This file contains the following user-callable routines c c - rotmat_gmres: c compute the sin and cos such that tan = b/a, with stability c close to 0,1 c - zrotmat_gmres: c complex version of rotmat_gmres c ...
1,914
17.960396
68
f
fmm3dbie
fmm3dbie-master/src/common/setops.f
c---------------------------- c This file has the following user callable routines: c c - setsub: c given two integer sets a,b, compute a\ (a \cap b)^{c}, c and b\ (a \cap b)^{c} c c - setdecomp: c given two integer sets a,b, compute a \cap b and c a \cap b^{c} and mappings of the s...
9,914
20.276824
72
f
fmm3dbie
fmm3dbie-master/src/common/sort.f
c PROGRAM driver c IMPLICIT NONE c INTEGER xx(50) c INTEGER n, index(50), i, index2(50) c c n = 12 c c index(01) = 07 c index(02) = 03 c index(03) = 01 c index(04) = 12 c index(05) = 11 c index(06) = 02 c index(07) = 05 c index(08) = 10 c index(09) =...
23,341
27.25908
72
f
fmm3dbie
fmm3dbie-master/src/common/sparse_reps.f
c c c This file contains the following user callable routines: c - conv_to_csc: convert a given set of (i,j) indices c to csc format c - rsc_to_csc: convert a row sparse compressed data c structure to a column sparse compressed data c structure or vice vrsa c---------------...
6,802
27.584034
71
f
fmm3dbie
fmm3dbie-master/src/common/tree_lr_3d.f
c c generate level restricted oct tree refined c to finest level. Features include c c radsrc parameter (preventing sources with large radius c from being pushed to the finest level) c radexp parameter (preventing exp centers with large radius c from bei...
173,850
34.956774
75
f
fmm3dbie
fmm3dbie-master/src/helm_wrappers/README.md
This folder contains several routines for evaluating various layer potentials for solving Helmholtz boundary value problems. Recall that the general nomenclature for routine types is the following <routine type prefix>_<pde name>_<input representation>_<data type on output>_<routine type suffix> For Helmholtz bounda...
1,102
21.06
72
md
fmm3dbie
fmm3dbie-master/src/helm_wrappers/helm_comb_dir.f
c c c This file contains the following user callable c routines: c c getnearquad_helm_comb_dir - generates the near c field quadrature for the Dirichlet data c corresponding to the combined field c representation c c lpcomp_helm_comb_dir c simpler version of helmhol...
94,842
26.683304
79
f
fmm3dbie
fmm3dbie-master/src/helm_wrappers/helm_comb_trans.f90
subroutine getnearquad_helm_comb_trans(npatches,norders,& ixyzs,iptype,npts,srccoefs,srcvals, & eps,zpars,iquadtype,nnz,row_ptr,col_ind,& iquad,rfac0,nquad,wnear) ! ! This subroutine generates the near field quadrature ! for the representations: ! ! u1 = ep1^2 S_{k1}[\lambda]+ep1*D_{k1}[\...
37,259
29.17004
74
f90
fmm3dbie
fmm3dbie-master/src/helm_wrappers/helm_rpcomb_imp.f90
subroutine getnearquad_helm_rpcomb_imp(npatches,norders,& ixyzs,iptype,npts,srccoefs,srcvals, & eps,zpars,iquadtype,nnz,row_ptr,col_ind,& iquad,rfac0,nquad,wnear) ! ! This subroutine generates the near field quadrature ! for the representation: ! ! u = S_{k}[\rho]+i*alpha*D_{k}[S_{i|k|}[...
44,083
27.644574
79
f90
fmm3dbie
fmm3dbie-master/src/helm_wrappers/helm_rpcomb_neu.f90
subroutine getnearquad_helm_rpcomb_neu(npatches,norders,& ixyzs,iptype,npts,srccoefs,srcvals, & eps,zpars,iquadtype,nnz,row_ptr,col_ind,& iquad,rfac0,nquad,wnear) ! ! This subroutine generates the near field quadrature ! for the representation: ! ! u = S_{k}[\rho]+i*alpha*D_{k}[S_{i|k|}[...
45,183
27.399749
73
f90
fmm3dbie
fmm3dbie-master/src/kernels/DPIE_kernels.f90
subroutine kernel_Vector_Helmholtz(nk,srcinfo,targinfo,zk,E_mat) implicit none !Given the representation: E=curlSk(a)+Sk(n·rho)+Sk(b)+gradSk(lambda) !And the test nx: -div: nxcurl: n· (that is the correct ordering) !List of calling arguments real ( kind = 8 ), intent(in) :: srcinfo(12) real ( kind = 8 ), i...
17,353
26.031153
92
f90
fmm3dbie
fmm3dbie-master/src/kernels/helm_kernels.f90
! ! the following routines rely on the srcinfo and targinfo arrays ! containing the following information, standardized in the following ! way: ! ! *info(1:3) = xyz ! *info(4:6) = tanget vector 1 ! *info(7:9) = tangent vector 2 ! *info(10:12) = normal vector ! ! subroutine h3d_slp(src, ndt,targ, n...
10,050
18.403475
74
f90
fmm3dbie
fmm3dbie-master/src/kernels/lap_kernels.f90
! ! the following routines rely on the srcinfo and targinfo arrays ! containing the following information, standardized in the following ! way: ! ! *info(1:3) = xyz ! *info(4:6) = tanget vector 1 ! *info(7:9) = tangent vector 2 ! *info(10:12) = normal vector ! ! subroutine l3d_slp(src, ndt,targ, n...
7,446
17.711055
74
f90
fmm3dbie
fmm3dbie-master/src/kernels/stok_kernels.f90
! ! the following routines rely on the srcinfo and targinfo arrays ! containing the following information, standardized in the following ! way: ! ! *info(1:3) = xyz ! *info(4:6) = tanget vector 1 ! *info(7:9) = tangent vector 2 ! *info(10:12) = normal vector ! ! ! ! We take the following c...
11,289
21.224409
69
f90
fmm3dbie
fmm3dbie-master/src/kernels/yuk_kernels.f90
! ! the following routines rely on the srcinfo and targinfo arrays ! containing the following information, standardized in the following ! way: ! ! *info(1:3) = xyz ! *info(4:6) = tanget vector 1 ! *info(7:9) = tangent vector 2 ! *info(10:12) = normal vector ! ! subroutine y3d_slp(src, ndt,targ, n...
4,478
17.432099
73
f90
fmm3dbie
fmm3dbie-master/src/lap_wrappers/lap_comb_dir.f
c c c This file contains the following user callable c routines: c c getnearquad_lap_comb_dir - generates the near c field quadrature for the Dirichlet data c corresponding to the combined field c representation c c lpcomp_lap_comb_dir c simpler version of Laplace l...
72,672
26.854734
76
f
fmm3dbie
fmm3dbie-master/src/maxwell/analytic_sphere_pw_pec.f90
subroutine driver_analytic_sphere_pw_pec integer m,n,count1,count2,mn,nmax real ( kind = 8 ) xval,x_pt,y_pt,z_pt,r0 complex ( kind = 8 ) zk,E(3),H(3) real ( kind = 8 ), allocatable :: v(:,:),x(:) complex ( kind = 8 ), allocatable :: h_val(:),hp_val(:),hpp_val(:) complex ( kind = 8 ) ima data ima/...
23,441
26.25814
131
f90
fmm3dbie
fmm3dbie-master/src/maxwell/em_adpie_pec.f90
! 1 subroutine getnearquad_em_adpie_pec(npatches,norders,& &ixyzs,iptype,npts,srccoefs,srcvals,ndtarg,ntarg,targs,& &ipatch_id,uvs_targ,eps,zpars,iquadtype,nnz,row_ptr,col_ind,& &iquad,rfac0,nquad,wnear) ! ! This subroutine ge...
62,659
29.461838
114
f90
fmm3dbie
fmm3dbie-master/src/maxwell/em_auCKi_pec.f90
! 1 subroutine getnearquad_CKi(npatches,norders,& ixyzs,iptype,npts,srccoefs,srcvals,ndtarg,ntarg,targs,& ipatch_id,uvs_targ,eps,zpars,iquadtype,nnz,row_ptr,col_ind,& iquad,rfac0,nquad,wnear) ! ! This subroutine generates ...
102,171
28.839953
131
f90
fmm3dbie
fmm3dbie-master/src/maxwell/em_aumfie_pec.f90
subroutine getnearquad_em_aumfie_pec(npatches,norders,& &ixyzs,iptype,npts,srccoefs,srcvals,ndtarg,ntarg,targs,& &ipatch_id,uvs_targ,eps,zpars,iquadtype,nnz,row_ptr,col_ind,& &iquad,rfac0,nquad,wnear) ! ! This subroutine generates the near field quadrature ! for the auMFIE integral equation: ! ...
41,554
26.574652
103
f90
fmm3dbie
fmm3dbie-master/src/maxwell/em_aumfie_pec_new.f90
! ! ! This file contains the following suer callable routines ! for solving Maxwell's equations with perfect ! electric conductor boundary conditions ! using the magnetic field integral equation (mfie) ! ! PDE: ! curl E = ik H; curl H = - ik E ! ! Representation: ! H = curl S_{k}[J] ! E = ik S_{k} [J] - \na...
17,793
31.951852
78
f90
fmm3dbie
fmm3dbie-master/src/maxwell/em_cfie_rwg_pec.f90
! ! This file contains the following user callable routines for solving Maxwell ! equations using the Combined Field Integral Equation (CFIE): ! ! getnearquad_em_cfie_rwg_pec: routine for generating the near field ! quadrature correction ! ! em_cfie_rwg_solver: solves th...
69,771
28.476975
126
f90
fmm3dbie
fmm3dbie-master/src/maxwell/em_dfie.f90
subroutine DFIE_solver(npatches,norders,ixyzs,& &iptype,npts,srccoefs,srcvals,eps,zpars,numit,ifinout,& &rhs,eps_gmres,niter,errs,rres,soln) ! ! This subroutine solves the Scattering Maxwell homogeneous dielectric problem. ! The the equations are: ! ! curlE0=ik0H0; curlH0 =-ik0E0 (exterior region)...
82,537
33.563652
131
f90
fmm3dbie
fmm3dbie-master/src/maxwell/em_dfie_trans.f90
subroutine getnearquad_em_dfie_trans(npatches,norders,& &ixyzs,iptype,npts,srccoefs,srcvals,ndtarg,ntarg,targs,& &ipatch_id,uvs_targ,eps,zpars,iquadtype,nnz,row_ptr,col_ind,& &iquad,rfac0,nquad,wnear) ! ! ! This subroutine generates the near field quadrature ! for the integral DFIE: ! ! Note: th...
68,880
29.736725
89
f90
fmm3dbie
fmm3dbie-master/src/maxwell/em_mfie_pec.f90
! ! Last edited: ! ! This file contains the following user callable routines for solving ! Maxwell equations using the mfie integral represenation: ! ! getnearquad_em_mfie_pec: routine for generating the near field ! quadrature correction ! ! ! subroutine getnearquad_em_mfie_pec(npatches,norders,& ixyz...
59,539
28.072266
77
f90
fmm3dbie
fmm3dbie-master/src/maxwell/em_mfie_pec_new.f90
! ! ! This file contains the following suer callable routines ! for solving Maxwell's equations with perfect ! electric conductor boundary conditions ! using the magnetic field integral equation (mfie) ! ! PDE: ! curl E = ik H; curl H = - ik E ! ! Representation: ! H = curl S_{k}[J] ! E = -1/(ik) curl curl S...
16,774
31.892157
78
f90
fmm3dbie
fmm3dbie-master/src/maxwell/em_muller_trans.f90
subroutine getnearquad_em_muller_trans(npatches,norders,& &ixyzs,iptype,npts,srccoefs,srcvals,ndtarg,ntarg,targs,& &ipatch_id,uvs_targ,eps,zpars,iquadtype,nnz,row_ptr,col_ind,& &iquad,rfac0,nquad,wnear) ! ! ! This subroutine generates the near field quadrature ! for the Muller integral equation: ...
72,127
30.971631
122
f90
fmm3dbie
fmm3dbie-master/src/maxwell/em_nrccie_pec.f90
subroutine getnearquad_em_nrccie_pec(npatches,norders,& ixyzs,iptype,npts,srccoefs,srcvals,ndtarg,ntarg,targs,& ipatch_id,uvs_targ,eps,zpars,iquadtype,nnz,row_ptr,col_ind,& iquad,rfac0,nquad,wnear) ! ! This subroutine generates the near field quadrature ! for the integral equation: ! ! J...
52,984
27.019566
82
f90
fmm3dbie
fmm3dbie-master/src/maxwell/em_sdpie_pec.f90
! 1 subroutine getnearquad_em_sdpie_pec(npatches,norders,& &ixyzs,iptype,npts,srccoefs,srcvals,ndtarg,ntarg,targs,& &ipatch_id,uvs_targ,eps,zpars,iquadtype,nnz,row_ptr,col_ind,& &iquad,rfac0,nquad,wnear) ! ! This subroutine ge...
40,935
26.961749
104
f90
fmm3dbie
fmm3dbie-master/src/maxwell/fix_tri.f90
subroutine rwg2vr(srcvals,ns,norder,ntri,npoints,points,triang,rwg,nrwg,coefrwg,coefvr) implicit none !List of calling arguments integer, intent(in) :: ntri,npoints,ns,nrwg,norder integer, intent(in) :: triang(3,ntri) real ( kind = 8 ), intent(in) :: points(3,npoints),srcvals(12,ns) integer, intent(in) :...
35,436
26.685156
128
f90
fmm3dbie
fmm3dbie-master/src/quad_routs/cquadintrouts.f
c c TODO: make _comb version of the routine robust by checking c for error code in quadadap_main, and then reallocating c additional memory as needed c TODO: Implement vectorized versions of the routines c c c------------------------- c Notes: The subroutines in this file assume that all patches c are discre...
61,586
29.640299
76
f
fmm3dbie
fmm3dbie-master/src/quad_routs/cquadints_main.f
c c c c subroutine cquadints(eps,istrat,intype,npatches,norder, 1 ipoly,ttype,npols, 2 srccoefs,ndtarg,ntarg,xyztarg,ifp, 3 xyzproxy,itargptr,ntargptr,nporder,nppols, 3 fker,ndd,dpars,ndz,zpars,ndi,ipars,nqorder,nquadmax, 4 rfac,cintvals,ifmetric,rn1,n2) c c Task: c ...
6,314
30.262376
72
f
fmm3dbie
fmm3dbie-master/src/quad_routs/dquadintrouts.f
c c TODO: make _comb version of the routine robust by checking c for error code in dquadadap_main, and then reallocating c additional memory as needed c TODO: Implement vectorized versions of the routines c c c------------------------- c Notes: The subroutines in this file assume that all patches c are discr...
61,417
29.571429
76
f
fmm3dbie
fmm3dbie-master/src/quad_routs/dquadints_main.f
c c c c subroutine dquadints(eps,istrat,intype,npatches,norder, 1 ipoly,ttype,npols, 2 srccoefs,ndtarg,ntarg,xyztarg,ifp, 3 xyzproxy,itargptr,ntargptr,nporder,nppols, 3 fker,ndd,dpars,ndz,zpars,ndi,ipars,nqorder,nquadmax, 4 rfac,cintvals,ifmetric,rn1,n2) c c Task: c ...
6,314
30.262376
72
f
fmm3dbie
fmm3dbie-master/src/quad_routs/quadtreerouts.f
c cc cc c subroutine getquadtree(npatches,norder,ipoly,ttype,npols,srccoefs, 1 ntarg,xyztarg,itargptr,ntargptr,nquadmax,nlmax,rfac,nquad,nlev, 2 ichild_start,da,quadcm,quadrad,qverts,iquadrel,ier) c------------- c Task: c Construct a tree of quads on a high-order quadrangle patch, c such that ...
16,046
25.480198
81
f
fmm3dbie
fmm3dbie-master/src/quad_routs/squarearbq.f
cc Copyright (C) 2009-2011: Zydrunas Gimbutas and Hong Xiao cc Contact: Zydrunas Gimbutas <gimbutas@cims.nyu.edu> cc Hong Xiao <hxiao@ucdavis.edu> cc cc This program is free software; you can redistribute it and/or modify cc it under the terms of the GNU General Public License as published by cc the Free So...
199,409
45.395998
75
f
fmm3dbie
fmm3dbie-master/src/quadratures/far_field_routs.f90
! This file contains the following user callable routines ! ! ! get_far_order - determine oversampling order for the far-field ! based on bounding radii for near-field, the accuracy and the kernel ! ! get_far_order_tri - called by get_far_order when patch is a triangle ! ! subroutine get_far_order(e...
12,234
22.483685
88
f90
fmm3dbie
fmm3dbie-master/src/quadratures/ggq-quads.f
c c c c c This file has the following user callable routines c c ?getnearquad_ggq_guru - guru interface for c computing near field quadrature for a compact/pv kernel c c c z - complex c d - double precision c c TODO: c * Fix behavior of getting quadrature nodes for differ...
40,449
29.007418
74
f
fmm3dbie
fmm3dbie-master/src/quadratures/ggq-selfquad-routs.f
C C (c) Jim Bremer, all rights reserved C C edited by: Manas Rachh C c This file contains subroutines for generating quadrature rules c for integrating a class of radially singular functions over c more or less arbitrary triangles containing the origin. c c The quadrature rules are designed to...
234,233
36.5375
78
f
fmm3dbie
fmm3dbie-master/src/quadratures/ggq-selfquad.f
c c This file contains code for generating quadratures for the c evaluation of integrals of the form c c \int K(x,y) \sigma(y) dS(y) (1) c S c where: c c S is a surface element and dS is the corresponding c surface measure, ...
8,654
28.539249
77
f
fmm3dbie
fmm3dbie-master/src/quadratures/near_field_routs.f
c this file contains the near field routines c to be used for quadrature generation c c findnear - find near field of a collection c of sources with extent and targets c c findnearmem - memory management routine for find c ...
30,077
27.456008
73
f
fmm3dbie
fmm3dbie-master/src/quadratures/near_quad_sub.f
c c c This file contains subroutines for computing the subtraction c step corresponding to the computed quadrature correction c c Using this feature would increase the memory requirements of c the code but imporve the CPU time performance of the solver c c c c c This file has the following user callable rou...
5,855
32.849711
74
f
fmm3dbie
fmm3dbie-master/src/stok_wrappers/stok_comb_vel.f
c c c This file contains the following user callable c routines: c c getnearquad_stok_comb_vel - generates the near c field quadrature for the velocity c corresponding to the combined layer c representation c c lpcomp_stok_comb_vel c simpler version of layer potenti...
48,018
27.032107
76
f
fmm3dbie
fmm3dbie-master/src/surface_routs/in_gidmsh2.f90
! ! This file contains the input routines for reading in ! Gmsh v2 file on input, and converting the input data structure ! to a Rokhlin vioreanu discretization of an equivalent order. ! ! The file currently supports reading low order triangular elements ! with 3,6,10, or 15 nodes ! ! The file has 2 user callabl...
7,471
27.410646
75
f90
fmm3dbie
fmm3dbie-master/src/surface_routs/in_gmsh2.f90
! ! This file contains the input routines for reading in ! Gmsh v2 file on input, and converting the input data structure ! to a Rokhlin vioreanu discretization of an equivalent order. ! ! The file currently supports reading low order triangular elements ! with 3,6,10, or 15 nodes ! ! The file has 2 user callabl...
12,849
23.337121
76
f90
fmm3dbie
fmm3dbie-master/src/surface_routs/in_go3.f90
! ! ! This file contains the input routines for handling Felipe's ! go3 format for input - a format meant to handle ! triangulation of surfaces with RV nodes, where each patch ! is discretized using the same order RV nodes ! ! ! The file has 2 user callable routines ! open_gov3_geometry_mem - estimates the me...
5,493
31.508876
86
f90
fmm3dbie
fmm3dbie-master/src/surface_routs/patch_basis_routs.f90
! ! ! TODO: fix speed of determining clashes ! ! subroutine get_npols(iptype,norder,npols) ! ! ! This subroutine determines the number of polynomials ! for a given order corresponding to patch type ! ! Input arguments ! - iptype: integer ! type of patch ! * iptype = 1, triangular patch with ...
13,620
23.193606
81
f90