00001 subroutine addBC
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067 use global
00068
00069
00070 implicit none
00071
00072 integer,pointer :: IM(:,:,:,:)
00073 integer,pointer :: nx,ny
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083 IM=>myModel%physics(currentPhysics)%domain(currentDomain)%DofMatrix
00084
00085 nx=>myModel%physics(currentPhysics)%domain(currentDomain)%nx
00086 ny=>myModel%physics(currentPhysics)%domain(currentDomain)%ny
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097 select case(currentPhysics)
00098
00099
00100 case(1)
00101
00102
00103 IM(:,:,:,boundary)=1
00104
00105
00106 IM(1,1:ny,:,boundary)=2
00107 IM(2:nx-1,1,:,boundary)=2
00108 IM(2:nx-1,ny,:,boundary)=2
00109
00110
00111 IM(nx,1:ny,:,boundary)=3
00112
00113 case(2)
00114
00115
00116 IM(:,:,:,boundary)=1
00117
00118
00119 IM(nx,1:ny,:,boundary)=2
00120 IM(1:nx-1,1,:,boundary)=2
00121 IM(1:nx-1,ny,:,boundary)=2
00122
00123
00124 IM(1,2:ny-1,absolute,boundary)=3
00125
00126
00127 end select
00128
00129
00130
00131
00132
00133
00134
00135
00136 end subroutine addBC