[yt-svn] commit/yt-3.0: MatthewTurk: Using the incorrect output_left resulted in garbage in the ghost zones.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Fri Jul 19 05:27:35 PDT 2013


1 new commit in yt-3.0:

https://bitbucket.org/yt_analysis/yt-3.0/commits/42a76b0f6960/
Changeset:   42a76b0f6960
Branch:      yt-3.0
User:        MatthewTurk
Date:        2013-07-17 22:49:39
Summary:     Using the incorrect output_left resulted in garbage in the ghost zones.

This fixes a pernicious bug where ghost zones would have just simply bad data
in them.
Affected #:  1 file

diff -r 6793ff95963ec411086d25ef94c7aff7985a8984 -r 42a76b0f696070ca0179a633127f2a3c646925d6 yt/data_objects/construction_data_containers.py
--- a/yt/data_objects/construction_data_containers.py
+++ b/yt/data_objects/construction_data_containers.py
@@ -703,7 +703,7 @@
         new_fields = []
         for input_field in level_state.fields:
             output_field = np.zeros(output_dims, dtype="float64")
-            output_left = self.global_startindex + 0.5
+            output_left = level_state.global_startindex + 0.5
             ghost_zone_interpolate(rf, input_field, input_left,
                                    output_field, output_left)
             new_fields.append(output_field)

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

--

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