Skip to content

Commit

Permalink
Changing definition of some variables in module parameters (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhenneking authored Sep 25, 2023
1 parent 3670609 commit 601063c
Show file tree
Hide file tree
Showing 98 changed files with 2,201 additions and 1,602 deletions.
1 change: 0 additions & 1 deletion trunk/problems/LASER/COMMON_FILES/commonParam.F90
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ module commonParam
!$OMP THREADPRIVATE (ICOMP_TS)
integer :: ICHOOSE_DISP, ICHOOSE_COMP, ICHOOSE_SIGPUMP
integer :: IEXACT_DISP
integer, parameter :: MY_NR_RHS=1
!
!..Problem Number
! ...... NO_PROBLEM = 1 Heat Solve (linear)
Expand Down
100 changes: 1 addition & 99 deletions trunk/problems/LASER/COMMON_FILES/commonRoutines.F90
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ subroutine my_sizetest
nH=0; nE=0; nV=0; nQ=0
!
write(*,*) 'my_sizetest: NRHVAR, NREVAR, NRVVAR, NRQVAR = ', &
NRHVAR, NREVAR, NRVVAR, NRQVAR
NRHVAR, NREVAR, NRVVAR, NRQVAR
do nod = 1, NRNODS
if (Is_inactive(nod)) cycle
select case(NODES(nod)%ntype)
Expand Down Expand Up @@ -335,101 +335,3 @@ subroutine get_Beta(Xp,Fld_flag, Zbeta,Zdbeta,Zd2beta)
endif
!
end subroutine get_Beta
!
!
!-------------------------------------------------------------------------------
!
! routine: copy_coms
!
! last modified: Jan 2019
!
! purpose: copies all solution dofs from one component set to another
!
! input: - No1: component to copy from
! - No2: component to copy to
!
!-------------------------------------------------------------------------------
!
subroutine copy_coms(No1,No2)
!
use parameters
use data_structure3D
!
implicit none
!
integer, intent(in) :: No1,No2
!
integer :: nod, nf, nt, nn2, i
!
!-------------------------------------------------------------------------------
!
!..check consistency
if ((No1.lt.0).or.(No2.lt.0).or.(No1.gt.NRCOMS).or.(No2.gt.NRCOMS)) then
write(*,*) 'copy_coms: No1,No2,NRCOMS = ', No1,No2,NRCOMS, ' . stop.'
stop
endif
if (No1.eq.No2) return
!
!..loop through active nodes
!$OMP PARALLEL DO &
!$OMP PRIVATE(nf,nt,nn2,i) &
!$OMP SCHEDULE(DYNAMIC)
do nod=1,NRNODS
if (Is_inactive(nod)) cycle
if (.not. associated(NODES(nod)%dof)) cycle
!
! ...H1 dof
if (.not. associated(NODES(nod)%dof%zdofH)) goto 10
nf = (No1-1)*NRHVAR
nt = (No2-1)*NRHVAR
nn2 = ubound(NODES(nod)%dof%zdofH,2)
if(nn2.gt.0) then
do i=1,NRHVAR
NODES(nod)%dof%zdofH(nt+i,1:nn2) = NODES(nod)%dof%zdofH(nf+i,1:nn2)
enddo
endif
10 continue
!
! ...H(curl) dof
if (.not. associated(NODES(nod)%dof%zdofE)) goto 20
nf = (No1-1)*NREVAR
nt = (No2-1)*NREVAR
nn2 = ubound(NODES(nod)%dof%zdofE,2)
if(nn2.gt.0) then
do i=1,NREVAR
NODES(nod)%dof%zdofE(nt+i,1:nn2) = NODES(nod)%dof%zdofE(nf+i,1:nn2)
enddo
endif
20 continue
!
! ...H(div) dof
if (.not. associated(NODES(nod)%dof%zdofV)) goto 30
nf = (No1-1)*NRVVAR
nt = (No2-1)*NRVVAR
nn2 = ubound(NODES(nod)%dof%zdofV,2)
if(nn2.gt.0) then
do i=1,NRVVAR
NODES(nod)%dof%zdofV(nt+i,1:nn2) = NODES(nod)%dof%zdofV(nf+i,1:nn2)
enddo
endif
30 continue
!
! ...L2 dof
if (.not. associated(NODES(nod)%dof%zdofQ)) goto 40
nf = (No1-1)*NRQVAR
nt = (No2-1)*NRQVAR
nn2 = ubound(NODES(nod)%dof%zdofQ,2)
if(nn2.gt.0) then
do i=1,NRQVAR
NODES(nod)%dof%zdofQ(nt+i,1:nn2) = NODES(nod)%dof%zdofQ(nf+i,1:nn2)
enddo
endif
40 continue
!
!..end of loop through nodes
enddo
!$OMP END PARALLEL DO
!
end subroutine copy_coms
!
!
Loading

0 comments on commit 601063c

Please sign in to comment.