<div dir="ltr">Ok, thanks for the help--that ended up being pretty easy. Something else I'm confused about is why the same files appear in two different directories. There's the hg-yt directory in YT_DIR/src, and then there's YT_DIR/yt, which seems to be the exact same thing. What's the difference between them?<div><br></div><div>Another question--will the fork that I created be updated with future changes to the code, or do I have to manually update it, and, if so, how?</div><div><br></div><div>Thanks for your help,</div><div><br></div><div>Dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-04 11:23 GMT-05:00 Cameron Hummels <span dir="ltr"><<a href="mailto:chummels@gmail.com" target="_blank">chummels@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There is also some discussion on how to do it in the developer documentation:<div><br></div><div><a href="http://yt-project.org/docs/dev/developing/developing.html#making-and-sharing-changes" target="_blank">http://yt-project.org/docs/dev/developing/developing.html#making-and-sharing-changes</a><br></div><div><br></div><div>Thanks for your hard work on this, and don't hesitate to ask for more help!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Cameron</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 4, 2014 at 8:05 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Dan,<br>
<br>
Yup, you can commit in that directory, and push to a fork.  Create a<br>
fork on bitbucket, then do your changes and commit, and issue this<br>
command:<br>
<br>
hg push <a href="https://bitbucket.org/yourusername/yt" target="_blank">https://bitbucket.org/yourusername/yt</a><br>
<br>
Then you can issue a pull request via their web interface.  You can<br>
also edit your hgrc to add an alias, but that can happen later.<br>
<br>
-Matt<br>
<div><div><br>
On Thu, Dec 4, 2014 at 8:08 AM, Daniel Fenn <<a href="mailto:dsfenn@gmail.com" target="_blank">dsfenn@gmail.com</a>> wrote:<br>
> Hi Cameron,<br>
><br>
> Yeah, no problem. I'm not exactly sure how to do that. Do I have to fork yt<br>
> first, or can I use my existing installation since it's already using<br>
> Mercurial? I'm familiar with subversion, since that's what we use in our<br>
> research group, but I'm a bit hazy on how the whole thing is set up with yt.<br>
> When I installed yt using the installation script, it created a yt-hg<br>
> directory. Is that a checked-out version of the code that I can commit?<br>
><br>
> Thanks!<br>
><br>
> Dan<br>
><br>
> 2014-12-03 20:59 GMT-05:00 Cameron Hummels <<a href="mailto:chummels@gmail.com" target="_blank">chummels@gmail.com</a>>:<br>
><br>
>> Hey Daniel,<br>
>><br>
>> This is great that you got this working, and it sounds like something from<br>
>> which others could benefit! Would you mind submitting this change to the<br>
>> main codebase in a pull request?<br>
>><br>
>> Cameron<br>
>><br>
>> On Wed, Dec 3, 2014 at 6:46 PM, Daniel Fenn <<a href="mailto:dsfenn@gmail.com" target="_blank">dsfenn@gmail.com</a>> wrote:<br>
>>><br>
>>> Hi Matt,<br>
>>><br>
>>> I was able to get my MPI problem fixed by using subcommunicators. I<br>
>>> modified enable_parallelism() to take an optional argument that specifies<br>
>>> the MPI communicator yt should use. If none is specified, it defaults to<br>
>>> COMM_WORLD. Seems to be working pretty well so far.<br>
>>><br>
>>> Thanks for the advice,<br>
>>><br>
>>> Dan<br>
>>><br>
>>> 2014-12-03 19:16 GMT-05:00 Matthew Turk <<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>>:<br>
>>><br>
>>>> Hi Dan,<br>
>>>><br>
>>>> I've done this before by modifying how the global communicator is<br>
>>>> created.  The way they work in yt is through pushing new communicators<br>
>>>> onto a stack, which can vary based on which processors you're on.  I<br>
>>>> don't think I ever wrote it up in a PR, but I think it could be done<br>
>>>> without too much work.<br>
>>>><br>
>>>> On Wed, Dec 3, 2014 at 11:47 AM, Daniel Fenn <<a href="mailto:dsfenn@gmail.com" target="_blank">dsfenn@gmail.com</a>> wrote:<br>
>>>> > Is there a way to restrict yt to only use a subset of the available<br>
>>>> > processes when it's running in parallel? I have a set of ipython<br>
>>>> > engines<br>
>>>> > running, and I'm trying to launch a yt script on a subset of them, but<br>
>>>> > it<br>
>>>> > just hangs. It works fine if I launch the same script on all the<br>
>>>> > processes.<br>
>>>> ><br>
>>>> > Printing out MPI.COMM_WORLD.Get_size() from the script gives the total<br>
>>>> > number of engines, not the size of the subset I'm trying to use.<br>
>>>> ><br>
>>>> > I haven't done a lot of parallel programming, but I would guess that<br>
>>>> > the<br>
>>>> > running processes are waiting on one that's not running a yt script,<br>
>>>> > since<br>
>>>> > they can see the total number of processes available, but not the size<br>
>>>> > of<br>
>>>> > the subset of processes that are actually running a yt script.<br>
>>>> ><br>
>>>> > Does anyone have any thoughts on how to do this?<br>
>>>> ><br>
>>>> > Thanks,<br>
>>>> ><br>
>>>> > Dan<br>
>>>> ><br>
>>>> > _______________________________________________<br>
>>>> > yt-users mailing list<br>
>>>> > <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
>>>> > <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>>>> ><br>
>>>> _______________________________________________<br>
>>>> yt-users mailing list<br>
>>>> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
>>>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> yt-users mailing list<br>
>>> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
>>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Cameron Hummels<br>
>> Postdoctoral Researcher<br>
>> Steward Observatory<br>
>> University of Arizona<br>
>> <a href="http://chummels.org" target="_blank">http://chummels.org</a><br>
>><br>
>> _______________________________________________<br>
>> yt-users mailing list<br>
>> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Cameron Hummels<div>Postdoctoral Researcher</div><div>Steward Observatory</div><div>University of Arizona</div><div><a href="http://chummels.org" target="_blank">http://chummels.org</a></div></div>
</div>
</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>