Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
gha3mi committed Apr 2, 2024
1 parent a2c701e commit e37d48c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/NURBS/forcad_nurbs_curve.f90
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ pure subroutine get_elem_Xg(this, elemConn, p)
impure subroutine export_Xc(this, filename)
class(nurbs_curve), intent(in) :: this
character(len=*), intent(in) :: filename
integer :: i, j, nc, nunit
integer :: i, nc, nunit
integer, dimension(:,:), allocatable :: elemConn

! check
Expand Down Expand Up @@ -357,7 +357,7 @@ impure subroutine export_Xc(this, filename)
impure subroutine export_Xg(this, filename)
class(nurbs_curve), intent(in) :: this
character(len=*), intent(in) :: filename
integer :: i, j, ng, nunit
integer :: i, ng, nunit
integer, dimension(:,:), allocatable :: elemConn

! check
Expand Down
5 changes: 2 additions & 3 deletions src/NURBS/forcad_nurbs_surface.f90
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ pure subroutine set2(this, Xth_dir1, Xth_dir2, order, continuity1, continuity2,
integer, intent(in) :: continuity1(:), continuity2(:)
real(rk), intent(in) :: Xc(:,:)
real(rk), intent(in), optional :: Wc(:)
integer :: nc(2)

this%knot1 = compute_knot_vector(Xth_dir1, order(1), continuity1)
this%knot2 = compute_knot_vector(Xth_dir2, order(2), continuity2)
Expand Down Expand Up @@ -359,7 +358,7 @@ pure subroutine get_elem_Xg(this, elemConn, p)
impure subroutine export_Xc(this, filename)
class(nurbs_surface), intent(in) :: this
character(len=*), intent(in) :: filename
integer :: i, j, nc, nunit
integer :: i, nc, nunit
integer, dimension(:,:), allocatable :: elemConn

! check
Expand Down Expand Up @@ -403,7 +402,7 @@ impure subroutine export_Xc(this, filename)
impure subroutine export_Xg(this, filename)
class(nurbs_surface), intent(in) :: this
character(len=*), intent(in) :: filename
integer :: i, j, ng, nunit
integer :: i, ng, nunit
integer, dimension(:,:), allocatable :: elemConn

! check
Expand Down
5 changes: 2 additions & 3 deletions src/NURBS/forcad_nurbs_volume.f90
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ pure subroutine set2(this, Xth_dir1, Xth_dir2, Xth_dir3, order, continuity1, con
integer, intent(in) :: continuity1(:), continuity2(:), continuity3(:)
real(rk), intent(in) :: Xc(:,:)
real(rk), intent(in), optional :: Wc(:)
integer :: nc(3)

this%knot1 = compute_knot_vector(Xth_dir1, order(1), continuity1)
this%knot2 = compute_knot_vector(Xth_dir2, order(2), continuity2)
Expand Down Expand Up @@ -394,7 +393,7 @@ pure subroutine get_elem_Xg(this, elemConn, p)
impure subroutine export_Xc(this, filename)
class(nurbs_volume), intent(in) :: this
character(len=*), intent(in) :: filename
integer :: i, j, nc, nunit
integer :: i, nc, nunit
integer, dimension(:,:), allocatable :: elemConn

! check
Expand Down Expand Up @@ -439,7 +438,7 @@ impure subroutine export_Xc(this, filename)
impure subroutine export_Xg(this, filename)
class(nurbs_volume), intent(in) :: this
character(len=*), intent(in) :: filename
integer :: i, j, ng, nunit
integer :: i, ng, nunit
integer, dimension(:,:), allocatable :: elemConn

! check
Expand Down
4 changes: 2 additions & 2 deletions src/Rational_Bezier/forcad_bezier_curve.f90
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ pure subroutine get_elem_Xg(this, elemConn, p)
impure subroutine export_Xc(this, filename)
class(bezier_curve), intent(in) :: this
character(len=*), intent(in) :: filename
integer :: i, j, nc, nunit
integer :: i, nc, nunit
integer, dimension(:,:), allocatable :: elemConn

! check
Expand Down Expand Up @@ -320,7 +320,7 @@ impure subroutine export_Xc(this, filename)
impure subroutine export_Xg(this, filename)
class(bezier_curve), intent(in) :: this
character(len=*), intent(in) :: filename
integer :: i, j, ng, nunit
integer :: i, ng, nunit
integer, dimension(:,:), allocatable :: elemConn

! check
Expand Down
4 changes: 2 additions & 2 deletions src/Rational_Bezier/forcad_bezier_surface.f90
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ pure subroutine get_elem_Xg(this, elemConn, p)
impure subroutine export_Xc(this, filename)
class(bezier_surface), intent(in) :: this
character(len=*), intent(in) :: filename
integer :: i, j, nc, nunit
integer :: i, nc, nunit
integer, dimension(:,:), allocatable :: elemConn

! check
Expand Down Expand Up @@ -342,7 +342,7 @@ impure subroutine export_Xc(this, filename)
impure subroutine export_Xg(this, filename)
class(bezier_surface), intent(in) :: this
character(len=*), intent(in) :: filename
integer :: i, j, ng, nunit
integer :: i, ng, nunit
integer, dimension(:,:), allocatable :: elemConn

! check
Expand Down
4 changes: 2 additions & 2 deletions src/Rational_Bezier/forcad_bezier_volume.f90
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ pure subroutine get_elem_Xg(this, elemConn, p)
impure subroutine export_Xc(this, filename)
class(bezier_volume), intent(in) :: this
character(len=*), intent(in) :: filename
integer :: i, j, nc, nunit
integer :: i, nc, nunit
integer, dimension(:,:), allocatable :: elemConn

! check
Expand Down Expand Up @@ -363,7 +363,7 @@ impure subroutine export_Xc(this, filename)
impure subroutine export_Xg(this, filename)
class(bezier_volume), intent(in) :: this
character(len=*), intent(in) :: filename
integer :: i, j, ng, nunit
integer :: i, ng, nunit
integer, dimension(:,:), allocatable :: elemConn

! check
Expand Down
2 changes: 1 addition & 1 deletion src/forcad_utils.f90
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ pure function cmp_elemConn_C0_L(nnode,p) result(elemConn)
integer, intent(in) :: nnode
integer, intent(in) :: p
integer, dimension(:,:), allocatable :: elemConn
integer :: i, j, l
integer :: i, l
integer, dimension(:), allocatable :: nodes

allocate(elemConn( ((nnode-p) / p) ,2))
Expand Down

0 comments on commit e37d48c

Please sign in to comment.