[yt-svn] commit/yt: mzingale: make Maestro set the periodicity tuple by reading the job_info parameters

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Apr 14 09:47:51 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/59e3ee7f60de/
Changeset:   59e3ee7f60de
Branch:      yt-3.0
User:        mzingale
Date:        2014-04-14 18:30:32
Summary:     make Maestro set the periodicity tuple by reading the job_info parameters
that refer to the boundary conditions.  Previously we were setting
all dimension's periodicity to True.
Affected #:  1 file

diff -r f4d28647881af0f472f0df0cf71440536d8cbf33 -r 59e3ee7f60dedbbdefa4823bd31b820d52c076e8 yt/frontends/boxlib/data_structures.py
--- a/yt/frontends/boxlib/data_structures.py
+++ b/yt/frontends/boxlib/data_structures.py
@@ -779,6 +779,20 @@
                 else:
                     self.parameters[p] = _guess_pcast(v)
 
+        # set the periodicity based on the integer BC runtime parameters
+        periodicity = [True, True, True]
+        if not self.parameters['bcx_lo'] == -1:
+            periodicity[0] = False
+
+        if not self.parameters['bcy_lo'] == -1:
+            periodicity[1] = False
+
+        if not self.parameters['bcz_lo'] == -1:
+            periodicity[2] = False
+
+        self.periodicity = ensure_tuple(periodicity)
+
+
 class NyxHierarchy(BoxlibHierarchy):
 
     def __init__(self, pf, dataset_type='nyx_native'):

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list