[FLASH-USERS] Question on compiling Z-pinch example
Liu, Baowei
baowei.liu at rochester.edu
Sun Nov 30 15:44:29 EST 2025
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> 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
https://capst.ncku.edu.tw/PGS/
_______________________________________________
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/20251130/b682a64b/attachment.htm>
More information about the flash-users
mailing list