# PetIGA / src / petiga1d.f90

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144``` ```pure subroutine IGA_Quadrature_1D(& inq,iX,iW,iL, & W,J,X,L) & bind(C, name="IGA_Quadrature_1D") use PetIGA implicit none integer(kind=IGA_INTEGER_KIND), parameter :: dim = 1 integer(kind=IGA_INTEGER_KIND), intent(in),value :: inq real (kind=IGA_REAL_KIND ), intent(in) :: iX(inq), iW(inq), iL real (kind=IGA_REAL_KIND ), intent(out) :: W(inq) real (kind=IGA_REAL_KIND ), intent(out) :: J(inq) real (kind=IGA_REAL_KIND ), intent(out) :: X(dim,inq) real (kind=IGA_REAL_KIND ), intent(out) :: L(dim,inq) integer(kind=IGA_INTEGER_KIND) :: iq forall (iq=1:inq) ! W(iq) = iW(iq) J(iq) = iL ! X(1,iq) = iX(iq) L(1,iq) = iL end forall end subroutine IGA_Quadrature_1D pure subroutine IGA_BasisFuns_1D(& order, & rational,W, & inq,ina,ind,iN, & N0,N1,N2,N3) & bind(C, name="IGA_BasisFuns_1D") use PetIGA implicit none integer(kind=IGA_INTEGER_KIND), parameter :: dim = 1 integer(kind=IGA_INTEGER_KIND), intent(in),value :: order integer(kind=IGA_INTEGER_KIND), intent(in),value :: rational integer(kind=IGA_INTEGER_KIND), intent(in),value :: inq, ina, ind real (kind=IGA_REAL_KIND ), intent(in) :: iN(0:ind,ina,inq) real (kind=IGA_REAL_KIND ), intent(in) :: W(dim+1, ina) real (kind=IGA_REAL_KIND ), intent(out) :: N0( ina,inq) real (kind=IGA_REAL_KIND ), intent(out) :: N1( dim,ina,inq) real (kind=IGA_REAL_KIND ), intent(out) :: N2(dim**2,ina,inq) real (kind=IGA_REAL_KIND ), intent(out) :: N3(dim**3,ina,inq) integer(kind=IGA_INTEGER_KIND) :: ia, iq integer(kind=IGA_INTEGER_KIND) :: nen nen = ina do iq=1,inq call TensorBasisFuns(& order,& ina,ind,iN(:,:,iq),& N0( :,iq),& N1(:,:,iq),& N2(:,:,iq),& N3(:,:,iq)) if (rational /= 0) then call Rationalize(& order,& nen,W,& N0( :,iq),& N1(:,:,iq),& N2(:,:,iq),& N3(:,:,iq)) end if end do contains pure subroutine TensorBasisFuns(& ord,& ina,ind,iN,& N0,N1,N2,N3) implicit none integer(kind=IGA_INTEGER_KIND), parameter :: dim = 1 integer(kind=IGA_INTEGER_KIND), intent(in),value :: ord integer(kind=IGA_INTEGER_KIND), intent(in),value :: ina, ind real (kind=IGA_REAL_KIND ), intent(in) :: iN(0:ind,ina) real (kind=IGA_REAL_KIND ), intent(out) :: N0( ina) real (kind=IGA_REAL_KIND ), intent(out) :: N1( dim,ina) real (kind=IGA_REAL_KIND ), intent(out) :: N2( dim,dim,ina) real (kind=IGA_REAL_KIND ), intent(out) :: N3(dim,dim,dim,ina) integer(kind=IGA_INTEGER_KIND) :: ia ! forall (ia=1:ina) N0(ia) = iN(0,ia) end forall ! forall (ia=1:ina) N1(1,ia) = iN(1,ia) end forall ! if (ord < 2) return forall (ia=1:ina) N2(1,1,ia) = iN(2,ia) end forall ! if (ord < 3) return forall (ia=1:ina) N3(1,1,1,ia) = iN(3,ia) end forall ! end subroutine TensorBasisFuns include 'petigarat.f90.in' end subroutine IGA_BasisFuns_1D pure subroutine IGA_ShapeFuns_1D(& order, & nqp,nen,X, & M0,M1,M2,M3, & N0,N1,N2,N3, & DetF,F,G) & bind(C, name="IGA_ShapeFuns_1D") use PetIGA implicit none integer(kind=IGA_INTEGER_KIND), parameter :: dim = 1 integer(kind=IGA_INTEGER_KIND), intent(in),value :: order integer(kind=IGA_INTEGER_KIND), intent(in),value :: nqp integer(kind=IGA_INTEGER_KIND), intent(in),value :: nen real (kind=IGA_REAL_KIND ), intent(in) :: X(dim+1,nen) real (kind=IGA_REAL_KIND ), intent(in) :: M0( nen,nqp) real (kind=IGA_REAL_KIND ), intent(in) :: M1(dim, nen,nqp) real (kind=IGA_REAL_KIND ), intent(in) :: M2(dim**2,nen,nqp) real (kind=IGA_REAL_KIND ), intent(in) :: M3(dim**3,nen,nqp) real (kind=IGA_REAL_KIND ), intent(out) :: N0( nen,nqp) real (kind=IGA_REAL_KIND ), intent(out) :: N1(dim, nen,nqp) real (kind=IGA_REAL_KIND ), intent(out) :: N2(dim**2,nen,nqp) real (kind=IGA_REAL_KIND ), intent(out) :: N3(dim**3,nen,nqp) real (kind=IGA_REAL_KIND ), intent(out) :: DetF(nqp) real (kind=IGA_REAL_KIND ), intent(out) :: F(dim,dim,nqp) real (kind=IGA_REAL_KIND ), intent(out) :: G(dim,dim,nqp) integer(kind=IGA_INTEGER_KIND) :: q do q=1,nqp call GeometryMap(& order,& nen,X,& M0(:,q),M1(:,:,q),M2(:,:,q),M3(:,:,q),& N0(:,q),N1(:,:,q),N2(:,:,q),N3(:,:,q),& DetF(q),F(:,:,q),G(:,:,q)) end do contains include 'petigageo.f90.in' end subroutine IGA_ShapeFuns_1D ```
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.