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

pchang pchang at mail.ncku.edu.tw
Thu Nov 27 23:45:58 EST 2025


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/



More information about the flash-users mailing list