Skip to content

sjzMa/mfix-2015

Repository files navigation

To build Linux

Please see mfix_usr_guide.pdf

Cross-Compile (To Build EXE windows Program)

Ubuntu or WSL(Windows10) Cross-Compiler

apt install -y --no-install-recommends gfortran-mingw-w64 build-essential sed

CentOS

yum install -y mingw-w64

build program

git clone https://github.com/sjzMa/mfix-2015.git

chmod 777 -R mfix-2015/

cd mfix-2015

mkdir trybuild && cd trybuild

computing with parallel

../configure_mfix --host=x86_64-w64-mingw32 FCFLAGS="-O2" FFLAGS="-O2" --enable-smp

computing without parallel

../configure_mfix --host=x86_64-w64-mingw32 FCFLAGS="-O2" FFLAGS="-O2"

make

make -j4 LDFLAGS="-static -Wl,--stack,16777216"

Last, you will get standalone EXE Program