[FLASH-USERS] [EXT] Question on compiling Z-pinch example

Liu, Baowei baowei.liu at rochester.edu
Mon Dec 1 09:09:14 EST 2025


Hi Po-Yu,

It's great to hear it's working for you now! Those are the same packages I have for running Flash as well.

Thanks,
Baowei


On Nov 30, 2025, at 9:45 PM, pchang <pchang at mail.ncku.edu.tw> wrote:


Hi Baowei,

Thank you! Yes, it was the problem that lapack library was not installed. After installing the lapack library and adding the line you suggested in Makefile.h, it worked.

I didn't install lapack library before and have no issues running other examples. Right now, I have HDF5, HYPRE, NetCDF, Lapack installed for runing FLASH. Are there any other libraries that may be needed? Thank you.

Cheers,

Po-Yu

Liu, Baowei 於 2025/12/1 上午 04:53 寫道:
Sorry I meant to say: in your Makefile.h

On Nov 30, 2025, at 3:44 PM, Liu, Baowei <baowei.liu at rochester.edu><mailto:baowei.liu at rochester.edu> wrote:

Hello Po-Yu,

These look like Lapack functions. Do you have the lapack library installed and linked? You might want to try manually adding the installed path to LIB_LAPACK =  in your Makefile.in file — something like:

LIB_LAPACK = -L YOUR_LAPACK_LIB_PATH -llapack -lblas

Let me know if still issues or other questions.

Thanks,
Baowei
________________________________
Baowei Liu
Center for Integrated Research Computing
University of Rochester
Bausch&Lomb 455A
(585)276-4105
________________________________

On Nov 27, 2025, at 11:45 PM, pchang <pchang at mail.ncku.edu.tw><mailto:pchang at mail.ncku.edu.tw> wrote:

Dear FLASH developers and users,

I am using FLASH (v4.8) to simulate a 1D cylindrical Z-Pinch as a start for simulating Z-pinch. I tried to use the example "Z-pinch Simulation" and followed the manual to setup:

./setup -auto magnetoHD/ZPinch -1d +cylindrical +ug +usm3t +mtmmmt species=fill,line,vacu +mgd mgd_meshgroups=6 +hdf5typeio

However, when I compiled the code by using "make", I got the following error messages:

/bin/ld: /tmp/cc0mvl41.ltrans23.ltrans.o: in function `__gr_uhyprelinearleastsquares_MOD_lsq.constprop.0':
/home/pchang/Downloads/FLASH4.8/object/gr_uhypreLinearLeastSquares.F90:129: undefined reference to `dgelsy_'
/bin/ld: /home/pchang/Downloads/FLASH4.8/object/gr_uhypreLinearLeastSquares.F90:129: undefined reference to `dgelsy_'
/bin/ld: /tmp/cc0mvl41.ltrans23.ltrans.o: in function `__gr_uhypreparamesh_MOD_initweightset.constprop.0':
/home/pchang/Downloads/FLASH4.8/object/gr_uhypreLinearLeastSquares.F90:76: undefined reference to `dgeqrf_'
/bin/ld: /tmp/cc0mvl41.ltrans23.ltrans.o:/home/pchang/Downloads/FLASH4.8/object/gr_uhypreLinearLeastSquares.F90:83: undefined reference to `dorgqr_'
/bin/ld: /tmp/cc0mvl41.ltrans23.ltrans.o: in function `__gr_uhypreparamesh_MOD_initweightset.constprop.0':
/home/pchang/Downloads/FLASH4.8/object/gr_uhypreLinearLeastSquares.F90:146: undefined reference to `dgesv_'
/bin/ld: /tmp/cc0mvl41.ltrans23.ltrans.o:/home/pchang/Downloads/FLASH4.8/object/gr_uhypreLinearLeastSquares.F90:76: undefined reference to `dgeqrf_'
/bin/ld: /tmp/cc0mvl41.ltrans23.ltrans.o:/home/pchang/Downloads/FLASH4.8/object/gr_uhypreLinearLeastSquares.F90:146: undefined reference to `dgesv_'
collect2: error: ld returned 1 exit status
make: *** [Makefile:384: flash4] Error 1

Did I miss anything that caused the error? Thank you.

Cheers,

Po-Yu

--
Po-Yu Chang
Associate Professor
Institute of Space and Plasma Sciences (ISAPS)
National Cheng Kung University (NCKU)
No.1, University Road,
Tainan City 70101, Taiwan
(TEL) +886-6-2757575 ext. 65916
pchang at mail.ncku.edu.tw<mailto:pchang at mail.ncku.edu.tw>
https://capst.ncku.edu.tw/PGS/<https://urldefense.com/v3/__https://capst.ncku.edu.tw/PGS/__;!!CGUSO5OYRnA7CQ!bzuoP2uXsqmR4LLb3xk1c4Lu9TpVJVEJ6TI6uXvZsFBlG8_KE8hLMlO8I6M4CdmcCt5strklXS-keWOAIFoWYK1rekdQ$>

_______________________________________________
flash-users mailing list
flash-users at flash.rochester.edu<mailto:flash-users at flash.rochester.edu>

For list info, including unsubscribe:
https://flash.rochester.edu/mailman/listinfo/flash-users



--
Po-Yu Chang
Associate Professor
Institute of Space and Plasma Sciences (ISAPS)
National Cheng Kung University (NCKU)
No.1, University Road,
Tainan City 70101, Taiwan
(TEL) +886-6-2757575 ext. 65916
pchang at mail.ncku.edu.tw<mailto:pchang at mail.ncku.edu.tw>
https://capst.ncku.edu.tw/PGS/<https://urldefense.com/v3/__https://capst.ncku.edu.tw/PGS/__;!!CGUSO5OYRnA7CQ!bzuoP2uXsqmR4LLb3xk1c4Lu9TpVJVEJ6TI6uXvZsFBlG8_KE8hLMlO8I6M4CdmcCt5strklXS-keWOAIFoWYK1rekdQ$>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20251201/e7a6b3c7/attachment-0001.htm>


More information about the flash-users mailing list