"Fossies" - the Fresh Open Source Software Archive

Member "getdp-3.1.0-source/Kernel/Gauss_Pyramid.cpp" (29 Dec 2018, 663 Bytes) of package /linux/privat/getdp-3.1.0-source.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "Gauss_Pyramid.cpp" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3.0.4_vs_3.1.0.

    1 // GetDP - Copyright (C) 1997-2019 P. Dular and C. Geuzaine, University of Liege
    2 //
    3 // See the LICENSE.txt file for license information. Please report all
    4 // issues on https://gitlab.onelab.info/getdp/getdp/issues.
    5 
    6 #include "Gauss_Pyramid.h"
    7 #include "Message.h"
    8 
    9 /* Gauss integration over a pyramid */
   10 
   11 void Gauss_Pyramid(int Nbr_Points, int Num,
   12            double *u, double *v, double *w, double *wght)
   13 {
   14   switch (Nbr_Points) {
   15 
   16   case  8 : 
   17     *u = upyr8[Num]; *v = vpyr8[Num]; *w = wpyr8[Num]; *wght = ppyr8[Num]; 
   18     break ;
   19 
   20   default : 
   21     Message::Error("Wrong number of Gauss points for Pyramid: "
   22                    "valid choice: 8");
   23     break;
   24   }
   25 }