1. Mustafa Abdul Jabbar
  2. PetIGA

Commits

Mustafa Abdul Jabbar  committed 152bd5f

set up the appropriate pointers for System and SysCrx for different boundaries

  • Participants
  • Parent commits 4679e64
  • Branches default

Comments (0)

Files changed (1)

File src/petiga.c

View file
  • Ignore whitespace
 {
   PetscFunctionBegin;
   PetscValidHeaderSpecific(iga,IGA_CLASSID,1);
-  if (System) iga->userops->System = System;
-  if (SysCtx) iga->userops->SysCtx = SysCtx;
+  PetscInt dir, side;
+  
+  if (System) 
+		{
+			iga->userops->System = System;
+			for(dir=0;dir<iga->dim;dir++)
+				for(side=0;side<2;side++)
+					iga->userops->BndSystem[dir][side] = System;
+		}
+  if (SysCtx) 
+		{
+			iga->userops->SysCtx = SysCtx;
+			for(dir=0;dir<iga->dim;dir++)
+				for(side=0;side<2;side++)
+					iga->userops->BndSystem[dir][side] = SysCtx;
+		}
   PetscFunctionReturn(0);
 }