<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="ltr">
<div dir="ltr">You're welcome :) Doing my best to help.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">TL;DR: you do not need to install anything in docker, but make sure you're using docker correctly first, and no there are no other images -- and yes this one is usable (used it yesterday, and so have other folks here!), and I would suggest maintaining
your own libraries for ease so then you can use gdb, for instance (the image doesn't have that installed, and also docker has a weird case insensitivity issue -- that's a docker thing, not a FLASH thing)<br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Jul 8, 2019 at 3:35 PM Полина Бевад <<a href="mailto:black_estrella@mail.ru" target="_blank">black_estrella@mail.ru</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>Marissa, thank you!<br>
<br>
Yes, I wanted to fix these paths, and mount FLASH folder to docker, but the main problem, I assume, that docker image doesn't include MPI, HDF5
</div>
</blockquote>
<div><br>
</div>
<div>It does have the libraries already installed. Can you try running with just the paths denoted as
<i>/usr/local </i>? The rest of the Makefile will use those paths to get the information stored in the libraries below. *Everything is already installed on docker, so you do not need to maintain or commit changes there to the libraries.*</div>
<div><br>
</div>
<div>Just to make sure it isn't something else, I'll detail how I use docker to run FLASH.</div>
<div><br>
</div>
<div>When I have used docker, this is a short hand of what I normally do (I am on a Mac OS):</div>
<div><b>NOTE:</b> Docker doesn't let you use <font face="courier new, monospace">
emacs</font> (although <font face="courier new, monospace">vi</font> and <font face="courier new, monospace">
less</font> are usable), if you're an <font face="courier new, monospace">emacs</font> user, you may want to open another tab of the equivalent directory to edit files, etc. Docker still processes those changes outside of it.</div>
<div><br>
</div>
<div>1. Make sure docker is running via application.</div>
<div>2. Use the command: <font face="courier new, monospace" color="#00ff00" style="background-color:rgb(0,0,0)"><span class="m_-8593878663873931749gmail-il">docker</span> run -v ~/:/Work -it icksa/flash4-deps</font></div>
<div>3. Usually, in my <i>~/</i>, I have my<i> FLASH4.X.Y</i> directory. I don't start the docker image right in the
<i>FLASH4.X.Y</i> directory; one layer out.</div>
<div>4. <font face="courier new, monospace">cd </font>into "Work" where I've placed the container, then into my
<i>FLASH4.X.Y</i>. </div>
<div>5. I "set up" in the docker environment, as well as make in there.</div>
<div>6. Using the <i>Makefile.h</i> mentioned prior with the small changes I suggested, you can do a simple set up like (even better if you create a
<i>Sedov.sh</i> file with that contained and <font face="courier new, monospace">
chmod a+x</font>-ing it so then you can save all set up commands used IMO), </div>
<div><font face="courier new, monospace" color="#00ff00" style="background-color:rgb(0,0,0)">./setup -auto Sedov -site=Prototypes/Linux -objdir=Sedov</font></div>
<div>7. <font face="courier new, monospace">cd</font> into new object directory <i>
Sedov/</i></div>
<div>8. <font face="courier new, monospace" color="#00ff00" style="background-color:rgb(0,0,0)">
make -j</font></div>
<div>9. <font face="courier new, monospace" color="#00ff00" style="background-color:rgb(0,0,0)">
./flash4</font></div>
<div> </div>
<div>Doing this you should be good to go with no errors or discrepancies in the libraries. Are there any deviations from what I detailed above that have taken place? </div>
<div><br>
</div>
<div>Also, it is not the end of the world to install your own libraries! If you're using a Mac, I would suggest using homebrew (<a href="https://brew.sh/">https://brew.sh/</a>, macports isn't being managed anymore to my knowledge?).</div>
<div><br>
</div>
<div>via homebrew, install open-mpi 4.0.1_1. Doing this will install all of the dependencies open MPI needs (GCC etc)<br>
I would then suggest HIGHLY of self-installing hdf5 1.8.20 parallelized with fortran, and hypre 2.11.2. If you install HDF5 and HYPRE via homebrew, homebrew may update them to versions that are too new for FLASH to deal with (i.e. haven't been tested with FLASH
yet).</div>
<div><br>
</div>
<div>For instance, for HYPRE:<br>
<br>
</div>
<div>
<div dir="ltr">
<div>Download one of their more stable versions (<a href="https://computation.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods/software" target="_blank">https://computation.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods/software</a>)
I downloaded 2.11 from 2017.</div>
<div><br>
</div>
<div>I put them in my Modules directory, where I normally build things like this. However, you can have it placed in
<i>/usr/local</i>:</div>
<div>Look at the README and the INSTALL files to get an idea of what you're doing. Then I did the following list of commands:</div>
<div><br>
</div>
<div>
<p class="gmail-m_8520802519060880477gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)">
<span class="gmail-m_8520802519060880477gmail-s1" style="font-variant-ligatures:no-common-ligatures">tar -xvf hypre-2.11.2.tar.gz<span class="gmail-m_8520802519060880477gmail-Apple-converted-space"> </span></span></p>
<p class="gmail-m_8520802519060880477gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)">
<span class="gmail-m_8520802519060880477gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8520802519060880477gmail-Apple-converted-space">cd hypre-2.11.2</span></span></p>
<p class="gmail-m_8520802519060880477gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)">
<span class="gmail-m_8520802519060880477gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8520802519060880477gmail-Apple-converted-space">cd src/</span></span></p>
<p class="gmail-m_8520802519060880477gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)">
<span class="gmail-m_8520802519060880477gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_8520802519060880477gmail-Apple-converted-space"></span></span></p>
<p class="gmail-m_8520802519060880477gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)">
<span class="gmail-m_8520802519060880477gmail-s1" style="font-variant-ligatures:no-common-ligatures">FC=mpif90 CC=mpicc ./configure --prefix=/usr/local/hypre_2.11.2-selfbuilt</span></p>
<p class="gmail-m_8520802519060880477gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)">
<span class="gmail-m_8520802519060880477gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span></p>
<p class="gmail-m_8520802519060880477gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)">
<span class="gmail-m_8520802519060880477gmail-s1" style="font-variant-ligatures:no-common-ligatures">sudo make install</span></p>
</div>
</div>
<div><br>
</div>
<div>enter your password and voila! you would follow a similar pattern for HDF5 install.</div>
</div>
<div><br>
</div>
<div>Then I made my own site directory and put my own <i>Makefile.h</i> in there. For instance, my paths are:</div>
<div>
<p class="gmail-m_8520802519060880477gmail-p1" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:"Andale Mono";margin:0px;color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)">
<span class="gmail-m_8520802519060880477gmail-s1" style="font-variant-ligatures:no-common-ligatures">MPI_PATH <span class="gmail-m_8520802519060880477gmail-Apple-converted-space"> </span>= /usr/local/Cellar/open-mpi/4.0.1_1</span></p>
<p class="gmail-m_8520802519060880477gmail-p1" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:"Andale Mono";margin:0px;color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)">
<span class="gmail-m_8520802519060880477gmail-s1" style="font-variant-ligatures:no-common-ligatures">HDF4_PATH<span class="gmail-m_8520802519060880477gmail-Apple-converted-space"> </span>=</span></p>
<p class="gmail-m_8520802519060880477gmail-p1" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:"Andale Mono";margin:0px;color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)">
<span class="gmail-m_8520802519060880477gmail-s1" style="font-variant-ligatures:no-common-ligatures">HDF5_PATH<span class="gmail-m_8520802519060880477gmail-Apple-converted-space"> </span>= /usr/local/hdf5_1.8.20-parallelfortran</span></p>
<p class="gmail-m_8520802519060880477gmail-p1" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:"Andale Mono";margin:0px;color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)">
<span class="gmail-m_8520802519060880477gmail-s1" style="font-variant-ligatures:no-common-ligatures">HYPRE_PATH = /usr/local/hypre_2.11.2-selfbuilt</span></p>
</div>
<div><br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>and other libraries and then the purpose of this image isn't clear - if I need to install MPI and hdf5 as usual and then commit changes in image, then it the same as the common installation.
<br>
</div>
</blockquote>
<div><br>
</div>
<div>Just make the changes I suggested below, does it run?</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>Maybe there are some other images, because this one from manual was updated 4 years ago (<a>https://hub.docker.com/r/icksa/flash4-deps</a>)?<br>
</div>
</blockquote>
<div><br>
</div>
<div>Nope :X</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><br>
<blockquote style="border-left:1px solid rgb(8,87,166);margin:10px;padding:0px 0px 0px 10px">
Понедельник, 8 июля 2019, 22:14 +03:00 от Marissa Adams <<a>madams@pas.rochester.edu</a>>:<br>
<br>
<div id="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827">
<div class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827js-helper m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827js-readmsg-msg">
<div>
<div id="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827style_15626132692007293604_BODY">
<div class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827class_1562618846">
<div dir="ltr">To use the docker image you want to make sure you're using the appropriate
<i>Makefile.h</i>. <i>Prototypes/Linux/Makefile.h</i> is the most amenable to docker. However, it needs some small changes for the paths:<br>
<br>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)" class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail-p1_mailru_css_attribute_postfix">
<span style="font-variant-ligatures:no-common-ligatures" class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail-s1_mailru_css_attribute_postfix">MPI_PATH
<span class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail-Apple-converted-space_mailru_css_attribute_postfix">
</span>= /usr/local</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)" class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail-p1_mailru_css_attribute_postfix">
<span style="font-variant-ligatures:no-common-ligatures" class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail-s1_mailru_css_attribute_postfix">HDF4_PATH<span class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail-Apple-converted-space_mailru_css_attribute_postfix">
</span>=</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)" class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail-p1_mailru_css_attribute_postfix">
<span style="font-variant-ligatures:no-common-ligatures" class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail-s1_mailru_css_attribute_postfix">HDF5_PATH<span class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail-Apple-converted-space_mailru_css_attribute_postfix">
</span>= /usr/local</span></p>
<p style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:16px;line-height:normal;font-family:"Andale Mono";color:rgb(47,255,18);background-color:rgba(0,0,0,0.9)" class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail-p1_mailru_css_attribute_postfix">
<span style="font-variant-ligatures:no-common-ligatures" class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail-s1_mailru_css_attribute_postfix">HYPRE_PATH = /usr/local</span></p>
<div><br>
</div>
<div>If FLASH is not using the appropriate <i>Makefile.h</i>, you can tell it to do so in the set-up script you want via the flag <font face="courier new, monospace">-site=Prototypes/Linux/</font></div>
<div><font face="courier new, monospace"><br>
</font></div>
<div><font face="arial, sans-serif">FYI you can find a list of all setup flags in section 5.2 in the User Manual: </font><a rel="noopener noreferrer">http://flash.uchicago.edu/site/flashcode/user_support/flash4_ug_4p5.pdf</a></div>
<div><br>
</div>
</div>
<br>
<div class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail_quote_mailru_css_attribute_postfix">
<div class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail_attr_mailru_css_attribute_postfix" dir="ltr">
On Mon, Jul 8, 2019 at 1:58 PM Полина Бевад <<a rel="noopener noreferrer">black_estrella@mail.ru</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="m_-8593878663873931749m_-8379071911045063568gmail-m_-6644795244400860827gmail_quote_mailru_css_attribute_postfix">
<div><br>
<span style="font-family:Arial,Tahoma,Verdana,sans-serif">Dear FLASH users, <br>
<br>
</span>Has anyone encountered the problem of running FLASH 4.6 from Docker image `icksa/flash4-deps`?<br>
<br>
I received the error "/usr/local/mpich2 can't be found while run `make` command after `setup.py`, that means that MPI isn't installed (and yes, this folder is really absent in docker container). It is strange, because this image must be fully predefined and
must contain all needed libraries.<br>
<br>
I tried Docker image as a simplier way to try new version, because a primitive update of folder with FLASH from 4.4 to 4.6 version didn't work in my case: error of /usr/local/hdf5 -lz appeared and I would not want to reinstall libraries again...<br>
<br>
Thanks in advance!<br>
-- <br>
Polina Bevad</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<br>
-- <br>
Полина Бевад<br>
</div>
</blockquote>
</div>
</div>
</body>
</html>