Lisandro Dalcin avatar Lisandro Dalcin committed 8ed054d

Extend Fortran support

Comments (0)

Files changed (1)

src/petigaftn.F90

   end interface IGA_InvGradGeomMap
 
 
+  interface IGA_Basis0
+     module procedure IGA_Basis0
+  end interface IGA_Basis0
+
+  interface IGA_Basis1
+     module procedure IGA_Basis1
+  end interface IGA_Basis1
+
+  interface IGA_Basis2
+     module procedure IGA_Basis2
+  end interface IGA_Basis2
+
+  interface IGA_Basis3
+     module procedure IGA_Basis3
+  end interface IGA_Basis3
+
+
   interface IGA_Shape0
      module procedure IGA_Shape0
   end interface IGA_Shape0
       call c2f(p%normal,N,(/p%dim/))
     end function IGA_Normal
 
+    function IGA_Basis0(p) result(N)
+      use ISO_C_BINDING, only: c2f => C_F_POINTER
+      implicit none
+      type(IGAPoint), intent(in) :: p
+      real(kind=IGA_REAL_KIND), pointer :: N(:)
+      call c2f(p%basis(0),N,(/p%nen/))
+    end function IGA_Basis0
+
+    function IGA_Basis1(p) result(N)
+      use ISO_C_BINDING, only: c2f => C_F_POINTER
+      implicit none
+      type(IGAPoint), intent(in) :: p
+      real(kind=IGA_REAL_KIND), pointer :: N(:,:)
+      call c2f(p%basis(1),N,(/p%dim,p%nen/))
+    end function IGA_Basis1
+
+    function IGA_Basis2(p) result(N)
+      use ISO_C_BINDING, only: c2f => C_F_POINTER
+      implicit none
+      type(IGAPoint), intent(in) :: p
+      real(kind=IGA_REAL_KIND), pointer :: N(:,:,:)
+      call c2f(p%basis(2),N,(/p%dim,p%dim,p%nen/))
+    end function IGA_Basis2
+
+    function IGA_Basis3(p) result(N)
+      use ISO_C_BINDING, only: c2f => C_F_POINTER
+      implicit none
+      type(IGAPoint), intent(in) :: p
+      real(kind=IGA_REAL_KIND), pointer :: N(:,:,:,:)
+      call c2f(p%basis(3),N,(/p%dim,p%dim,p%dim,p%nen/))
+    end function IGA_Basis3
+
     function IGA_Shape0(p) result(N)
       use ISO_C_BINDING, only: c2f => C_F_POINTER
       implicit none
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.