[Users] [svn:cactuscode] Boundary/trunk/src/ (Rev. 327)

Erik Schnetter schnetter at cct.lsu.edu
Tue Apr 29 03:27:16 CDT 2014


Roland

It seems that these lines pertain to dimensions that are larger than the dimension of the respective grid variable. That is, this would e.g. set the extent of the z (sic!) boundary to 1 for 2d variables that don't have a z direction. Is this intended?

-erik

On Apr 29, 2014, at 2:57 , rhaas at tapir.caltech.edu wrote:

> User: rhaas
> Date: 2014/04/28 07:57 PM
> 
> Modified:
> /trunk/src/
>  CopyBoundary.c, FlatBoundary.c, ScalarBoundary.c, StaticBoundary.c
> 
> Log:
> correct 1d, 2d boundary handling
> 
> since rev 309 1d and 2d evolutions would not apply the boundary condition
> 
> File Changes:
> 
> Directory: /trunk/src/
> ======================
> 
> File [modified]: CopyBoundary.c
> Delta lines: +2 -2
> ===================================================================
> --- trunk/src/CopyBoundary.c	2014-03-23 02:13:34 UTC (rev 326)
> +++ trunk/src/CopyBoundary.c	2014-04-29 00:57:01 UTC (rev 327)
> @@ -1149,8 +1149,8 @@
>      so that we can use the INDEX_3D macro later on */
>   for (i = gdim; i < MAXDIM; i++)
>   {
> -    ash[i] = 0;
> -    lsh[i] = 0;
> +    ash[i] = 1;
> +    lsh[i] = 1;
>   }
> 
>   /* get the current timelevel */
> 
> File [modified]: FlatBoundary.c
> Delta lines: +2 -2
> ===================================================================
> --- trunk/src/FlatBoundary.c	2014-03-23 02:13:34 UTC (rev 326)
> +++ trunk/src/FlatBoundary.c	2014-04-29 00:57:01 UTC (rev 327)
> @@ -975,8 +975,8 @@
>      so that we can use the INDEX_3D macro later on */
>   for (i = gdim; i < MAXDIM; i++)
>   {
> -    ash[i] = 0;
> -    lsh[i] = 0;
> +    ash[i] = 1;
> +    lsh[i] = 1;
>   }
> 
>   /* get the current timelevel */
> 
> File [modified]: ScalarBoundary.c
> Delta lines: +2 -2
> ===================================================================
> --- trunk/src/ScalarBoundary.c	2014-03-23 02:13:34 UTC (rev 326)
> +++ trunk/src/ScalarBoundary.c	2014-04-29 00:57:01 UTC (rev 327)
> @@ -1114,8 +1114,8 @@
>      so that we can use the INDEX_3D macro later on */
>   for (i = gdim; i < MAXDIM; i++)
>   {
> -    ash[i] = 0;
> -    lsh[i] = 0;
> +    ash[i] = 1;
> +    lsh[i] = 1;
>   }
> 
>   /* get the current timelevel */
> 
> File [modified]: StaticBoundary.c
> Delta lines: +2 -2
> ===================================================================
> --- trunk/src/StaticBoundary.c	2014-03-23 02:13:34 UTC (rev 326)
> +++ trunk/src/StaticBoundary.c	2014-04-29 00:57:01 UTC (rev 327)
> @@ -994,8 +994,8 @@
>      so that we can use the INDEX_3D macro later on */
>   for (i = gdim; i < MAXDIM; i++)
>   {
> -    ash[i] = 0;
> -    lsh[i] = 0;
> +    ash[i] = 1;
> +    lsh[i] = 1;
>   }
> 
>   /* get the current timelevel */
> 
> _______________________________________________
> Commits mailing list
> Commits at cactuscode.org
> http://cactuscode.org/mailman/listinfo/commits

-- 
Erik Schnetter <schnetter at cct.lsu.edu>
http://www.perimeterinstitute.ca/personal/eschnetter/

My email is as private as my paper mail. I therefore support encrypting
and signing email messages. Get my PGP key from http://pgp.mit.edu/.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.einsteintoolkit.org/pipermail/users/attachments/20140429/9e9a13f9/attachment.bin 


More information about the Users mailing list