[FLASH-USERS] Fwd: Flash Compilation Problem

Ryan Farber rjfarber at umich.edu
Mon Oct 14 10:41:44 EDT 2024


Hi Sonu,

1. This should serve as a friendly reminder to always "reply all" if you
want to enable help from all flash-users ;)
2. There is a quickstart in the user's guide (which you can find on the
FLASH website) but generally to get started you should:

i. Submit the code request, and then after receiving your password,
download FLASH [which you probably have done already]
ii. tar xvzf FLASH4.8.tar.gz
iii. Set the paths for your system in Makefile.h (as Xu mentioned). If you
have already run the setup command, your object directory probably has a
soft link, which can show you the path to the original file (or you can use
the soft link to open Makefile.h). Otherwise, if you look in your "sites"
folder (inside of FLASH4.8) then you can either create a directory matching
your machine's hostname and modify a Makefile.h in there, or modify the
appropriate Prototypes subfolder's Makefile.h

Regarding what to modify in Makefile.h, generally you'll need to update the
MPI_PATH (and sometimes MPI_HOME, MPI_BIN, etc.) to point towards where you
have MPI installed. You typically will also need to update HDF5_PATH (or I
guess HDF4_PATH or the variable for netcdf). Make sure the fortran, C, and
C++ compilers are set to appropriate values.

iv. Back in your FLASH4.8 directory, run setup (for the Sedov problem for
example since I think it is still the de facto FLASH test problem): ./setup
Sedov -auto 2>&1 | tee OUTERR_SETUP.txt

v. cd object; make 2>&1 | tee OUT_MAKE.txt
-> You can also do parallel make of course.

If you run into issues, kindly attach the output of OUTERR_SETUP.txt as
well as OUT_MAKE.txt, in addition to describing what you tried and what you
think went wrong.

Best wishes,
--------
Ryan


On Mon, Oct 14, 2024 at 7:13 AM Sonu Kumar <kashyapsonu09 at gmail.com> wrote:

> Dear Flash Team,
>
> Please help me if possible.
> Thanks & Regards,
> Sonu Kumar
> Post Doctoral Fellow
> Basic Theory & Simulations Division
> Institute for Plasma Research
> Bhat, Gandhinagar-382428
> Gujarat, India
>
>
>
> ---------- Forwarded message ---------
> From: Sonu Kumar <kashyapsonu09 at gmail.com>
> Date: Fri, Oct 11, 2024 at 1:00 PM
> Subject: Re: [FLASH-USERS] Flash Compilation Problem
> To: 赵旭 <xuzhao1994 at sjtu.edu.cn>
>
>
>  Dear Sir,
>
> Can you give details of the command for compilation. I am
> facing difficulty in giving proper command.
>
> and the mpif90 directory is in * /home/sonu/mpich-install/bin/mpif90. *
>
> How to add this in my Flash4.8/object directory?.
>
> Thanks & Regards,
> Sonu Kumar
> Post Doctoral Fellow
> Basic Theory & Simulations Division
> Institute for Plasma Research
> Bhat, Gandhinagar-382428
> Gujarat, India
>
>
>
> On Mon, Sep 30, 2024 at 9:52 PM 赵旭 <xuzhao1994 at sjtu.edu.cn> wrote:
>
>> Hi Sonu,
>>
>> In your object folder there is a link file named Makefile.h,
>>
>> and you can modify the mpi/hdf5/hypre path.
>>
>> i.e., for mpi, you can use "which mpif90" command to show the file path.
>>
>> If you run FLASH in cluster, you can use "module" to load the
>> mpi/hdf5/hypre, which would be easier.
>>
>> Hope this help,
>>
>> Xu
>>
>> ----- 原始邮件 -----
>> 发件人: "Sonu Kumar" <kashyapsonu09 at gmail.com>
>> 收件人: "flash-users" <flash-users at flash.rochester.edu>
>> 发送时间: 星期一, 2024年 9 月 30日 下午 2:31:14
>> 主题: [FLASH-USERS] Flash Compilation Problem
>>
>> Dear Sir/Madam,
>>
>> Please guide me for the compilation of Flash code. I am facing a
>> difficulty with mpich installation. I am sharing with you a screenshot
>> related to this problem.
>>
>>
>> Thanks & Regards,
>> Sonu Kumar
>> Post Doctoral Fellow
>> Basic Theory & Simulations Division
>> Institute for Plasma Research
>> Bhat, Gandhinagar-382428
>> Gujarat, India
>>
>>
>> _______________________________________________
>> flash-users mailing list
>> flash-users at flash.rochester.edu
>>
>> For list info, including unsubscribe:
>> https://flash.rochester.edu/mailman/listinfo/flash-users
>> --
>> Zhao Xu
>> Laboratory for Laser Plasmas (MoE)
>> Shanghai Jiao Tong University
>> 800 Dongchuan Rd, Shanghai 200240
>>
> _______________________________________________
> flash-users mailing list
> flash-users at flash.rochester.edu
>
> For list info, including unsubscribe:
> https://flash.rochester.edu/mailman/listinfo/flash-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20241014/9eb0644f/attachment.htm>


More information about the flash-users mailing list