├── .gitattributes ├── .github └── workflows │ └── Build.yml ├── .gitignore ├── .gitmodules ├── .travis.yml ├── BuildWithMake ├── Docs │ ├── Doxygen │ │ └── mainpage.cxx │ ├── Makefile │ ├── flowsolver.Doxyfile │ ├── index.html │ ├── simvascular.Doxyfile │ └── styles.css ├── MakeHelpers │ ├── 2017.01 │ │ ├── compiler.clang.x64_macosx.mk │ │ ├── compiler.gcc.x64_linux.mk │ │ ├── compiler.gcc.x64_macosx.mk │ │ ├── compiler.gfortran.x64_linux.mk │ │ ├── compiler.gfortran.x64_macosx.mk │ │ ├── compiler.icpc.x64_linux.mk │ │ ├── compiler.ifort.x64_cygwin.mk │ │ ├── compiler.ifort.x64_linux.mk │ │ ├── compiler.ifort.x64_macosx.mk │ │ ├── compiler.mingw-gcc.x64_cygwin.mk │ │ ├── compiler.mingw-gfortran.x64_cygwin.mk │ │ ├── compiler.vs10.1.x64_cygwin.mk │ │ ├── compiler.vs12.5.x64_cygwin.mk │ │ ├── leslib-1.5.x64_cygwin.mk │ │ ├── leslib-1.5.x64_linux.mk │ │ ├── mpich.x64_linux.mk │ │ ├── mpich.x64_macosx.mk │ │ ├── mpich2-1.4p1.x64_cygwin.mk │ │ ├── msmpi.x64_cygwin.mk │ │ ├── openmpi.x64_linux.mk │ │ ├── openmpi.x64_macosx.mk │ │ ├── rules.x64_cygwin.mk │ │ ├── rules.x64_linux.mk │ │ ├── rules.x64_macosx.mk │ │ ├── tcltk-8.6.4.x64_cygwin.mk │ │ ├── tcltk-8.6.4.x64_linux.mk │ │ ├── tcltk-8.6.4.x64_macosx.mk │ │ ├── vtk-6.2.0.x64_cygwin.mk │ │ ├── vtk-6.2.0.x64_linux.mk │ │ ├── vtk-6.2.0.x64_macosx.mk │ │ └── wix-3.14.x64_cygwin.mk │ └── 2019.06 │ │ ├── compiler.clang.x64_macosx.mk │ │ ├── compiler.gcc.x64_linux.mk │ │ ├── compiler.gcc.x64_macosx.mk │ │ ├── compiler.gfortran.x64_linux.mk │ │ ├── compiler.gfortran.x64_macosx.mk │ │ ├── compiler.icpc.x64_linux.mk │ │ ├── compiler.ifort.x64_cygwin.mk │ │ ├── compiler.ifort.x64_linux.mk │ │ ├── compiler.ifort.x64_macosx.mk │ │ ├── compiler.mingw-gcc.x64_cygwin.mk │ │ ├── compiler.mingw-gfortran.x64_cygwin.mk │ │ ├── compiler.vs19.16.x64_cygwin.mk │ │ ├── leslib-1.5.x64_cygwin.mk │ │ ├── leslib-1.5.x64_linux.mk │ │ ├── mpich.x64_linux.mk │ │ ├── mpich.x64_macosx.mk │ │ ├── mpich2-1.4p1.x64_cygwin.mk │ │ ├── msmpi.x64_cygwin.mk │ │ ├── openmpi.x64_linux.mk │ │ ├── openmpi.x64_macosx.mk │ │ ├── rules.x64_cygwin.mk │ │ ├── rules.x64_linux.mk │ │ ├── rules.x64_macosx.mk │ │ ├── vtk.gl1.x64_cygwin.mk │ │ ├── vtk.gl1.x64_linux.mk │ │ ├── vtk.gl1.x64_macosx.mk │ │ ├── vtk.gl2.x64_cygwin.mk │ │ ├── vtk.gl2.x64_linux.mk │ │ ├── vtk.gl2.x64_macosx.mk │ │ ├── wget-externals.x64_cygwin.sh │ │ ├── wget-externals.x64_linux.sh │ │ ├── wget-externals.x64_macosx.sh │ │ └── wix-3.14.x64_cygwin.mk ├── Makefile ├── README-build-linux.txt ├── README-build-macosx.txt ├── README-build-windows.txt ├── Release │ ├── License.rtf │ ├── Makefile │ ├── developer_wrapper_scripts │ │ ├── developer-core-script │ │ ├── developer-svpost-script │ │ ├── developer-svpre-script │ │ ├── developer-svsolver-mpi-linux-script │ │ ├── developer-svsolver-mpi-macosx-script │ │ ├── developer-svsolver-mpi-windows-script │ │ ├── developer-svsolver-nompi-linux-script │ │ ├── developer-svsolver-nompi-macosx-script │ │ └── developer-svsolver-nompi-windows-script │ ├── linux_wrapper_scripts │ │ ├── linux-dist-core-script │ │ ├── linux-dist-svpost-script │ │ ├── linux-dist-svpre-script │ │ ├── linux-dist-svsolver-mpi-script │ │ └── linux-dist-svsolver-nompi-script │ ├── platform_independent_scripts │ │ ├── generic-launch-script │ │ ├── post-install.sh │ │ ├── post-solver-install.sh │ │ └── post-svsolver-install.sh │ ├── tcl_helper_scripts │ │ ├── create_tclIndex.tcl │ │ └── d2u_files.tcl │ ├── windows_installer_packages │ │ ├── MSMpiSetup.exe │ │ ├── msi-logo.png │ │ ├── vcredist_x64-MSVC-2013-update-4.exe │ │ ├── w_fcompxe_redist_intel64_2013_sp1.5.239.msi │ │ ├── wix-simvascular-svsolver-bundle.wxs │ │ └── ww_ifort_redist_intel64_2018.3.210.msi │ ├── windows_msi_helpers │ │ ├── makewxs-svsolver.tcl │ │ ├── msi-banner.bmp │ │ ├── msi-banner.jpg │ │ ├── msi-dialog.bmp │ │ ├── msi-dialog.jpg │ │ ├── simvascular.ico │ │ └── uuidgen.c │ └── windows_wrapper_scripts │ │ ├── windows-dist-core-script │ │ ├── windows-dist-svpost-script │ │ ├── windows-dist-svpre-script │ │ ├── windows-dist-svsolver-mpi-script │ │ └── windows-dist-svsolver-nompi-script ├── include.mk ├── quick-build-centos8-all-mpi.sh ├── quick-build-linux.sh ├── quick-build-macosx.sh ├── quick-build-ubuntu18-all-mpi.sh ├── quick-build-windows.sh └── targetlib.mk ├── CMakeLists.txt ├── Code ├── CMake │ ├── FindINTELRUNTIME.cmake │ ├── FindLESLIB.cmake │ ├── FindMETIS.cmake │ ├── FindMPI.cmake │ ├── FindSPARSE.cmake │ ├── SVLSConfig.cmake │ ├── SimVascularDependentOptions.cmake │ ├── SimVascularExternals.cmake │ ├── SimVascularFunctionCheckCompilerFlags.cmake │ ├── SimVascularFunctions.cmake │ ├── SimVascularInstallLibs.cmake │ ├── SimVascularInstallSetup.cmake │ ├── SimVascularInternals.cmake │ ├── SimVascularMacros.cmake │ ├── SimVascularOptions.cmake │ ├── SimVascularSystemSetup.cmake │ ├── SimVascularThirdParty.cmake │ └── Superbuild.cmake ├── CMakeLists.txt ├── FlowSolvers │ ├── CMakeLists.txt │ ├── Include │ │ ├── CMakeLists.txt │ │ ├── SimVascular.h │ │ ├── cvFlowsolverOptions.h.in │ │ ├── simvascular_options.h.in │ │ └── simvascular_version.h.in │ └── ThreeDSolver │ │ ├── CMakeLists.txt │ │ ├── Makefile │ │ ├── SolverIO │ │ ├── CMakeLists.txt │ │ ├── Makefile │ │ ├── cvSolverIO.cxx │ │ └── cvSolverIO.h │ │ ├── dummyMPI │ │ ├── CMakeLists.txt │ │ ├── Makefile │ │ ├── mpi.h │ │ ├── mpi_stubs.f │ │ ├── mpi_stubs_c.c │ │ ├── mpi_stubs_c.h │ │ ├── mpi_stubs_f77.h │ │ └── mpif.h │ │ ├── svLS │ │ ├── ADDBCMUL.f │ │ ├── BC.f │ │ ├── CGRAD.f │ │ ├── CMakeLists.txt │ │ ├── COMMU.f │ │ ├── CPUT.f │ │ ├── DOT.f │ │ ├── GE.f │ │ ├── GMRES.f │ │ ├── INCOMMU.f │ │ ├── LHS.f │ │ ├── LS.f │ │ ├── Makefile │ │ ├── NORM.f │ │ ├── NSSOLVER.f │ │ ├── PRECOND.f │ │ ├── SOLVE.f │ │ ├── SPARMUL.f │ │ ├── dummy_prototypes.f │ │ ├── svLS.h │ │ ├── svLS_API.h │ │ ├── svLS_API_c.h │ │ ├── svLS_STD.h │ │ ├── svLS_STRUCT.h │ │ ├── svLS_STRUCT_c.h │ │ └── svLS_c.h │ │ ├── svPost │ │ ├── CMakeLists.txt │ │ ├── Makefile │ │ └── post_solver.cxx │ │ ├── svPre │ │ ├── CMakeLists.txt │ │ ├── Laplace_Solve.cxx │ │ ├── Makefile │ │ ├── Transient_Laplace_Solve.cxx │ │ ├── cmd.cxx │ │ ├── cmd.h │ │ ├── directsolve.c │ │ ├── displacements.cxx │ │ ├── displacements_var_prop.cxx │ │ ├── gmresfortran.f90 │ │ ├── gmresfortran.h │ │ ├── helpers.cxx │ │ ├── presolver-vtk-cmds.cxx │ │ ├── stannspcg.f │ │ ├── supre-cmds.cxx │ │ └── supre.cxx │ │ └── svSolver │ │ ├── CMakeLists.txt │ │ ├── Cinput.cxx │ │ ├── Input.h │ │ ├── Makefile │ │ ├── ShapeFunctions_uniformP.c │ │ ├── ValType.cxx │ │ ├── ValType.h │ │ ├── addelmpvsqforsvls-closedloop-coronary.f │ │ ├── asbmfg-closedloop-varwall.f │ │ ├── asbnabi-closedloop.f │ │ ├── asbnasc-closedloop.f │ │ ├── asigmr-closedloop.f │ │ ├── auxmpi.h │ │ ├── closedloop_subroutines.f │ │ ├── common_blocks │ │ ├── aerfrc.h │ │ ├── blkdat.h │ │ ├── conpar.h │ │ ├── elmpar.h │ │ ├── extrat.h │ │ ├── fronts.h │ │ ├── genpar.h │ │ ├── incomp.h │ │ ├── inpdat.h │ │ ├── intdat.h │ │ ├── intpt.h │ │ ├── itrpnt.h │ │ ├── matdat.h │ │ ├── mbndnod.h │ │ ├── melmcat.h │ │ ├── mintpar.h │ │ ├── mio.h │ │ ├── mioname.h │ │ ├── mmatpar.h │ │ ├── msympar.h │ │ ├── mtimer1.h │ │ ├── mtimer2.h │ │ ├── newdim.h │ │ ├── nomodule.h │ │ ├── outpar.h │ │ ├── point.h │ │ ├── precis.h │ │ ├── propar.h │ │ ├── resdat.h │ │ ├── sclrs.h │ │ ├── sequence.h │ │ ├── shpdat.h │ │ ├── solpar.h │ │ ├── timdat.h │ │ ├── timer4.h │ │ ├── timpar.h │ │ ├── title.h │ │ └── workfc.h │ │ ├── common_c.h │ │ ├── coronary_subroutines.f │ │ ├── default.inp │ │ ├── elmgmr-closedloop-varwall.f │ │ ├── elmpvsq-closedloop-coronary.f │ │ ├── genbkb-varwall.f │ │ ├── genini-coronary.f │ │ ├── getIntPnts.c │ │ ├── global.h │ │ ├── input.config │ │ ├── input_fform.cxx │ │ ├── itrdrv-closedloop-varwall-coronary.f │ │ ├── leslib_code_bc3diag.f │ │ ├── leslib_code_drvallreducesclr.f │ │ ├── leslib_code_ftools.f │ │ ├── leslib_code_getsol.c │ │ ├── leslib_code_lessparse.f │ │ ├── leslib_code_lestools.c │ │ ├── leslib_code_ramg_driver.f │ │ ├── leslib_code_usr.c │ │ ├── leslib_code_usr.h │ │ ├── leslib_dummy_prototypes.c │ │ ├── main.cxx │ │ ├── missing_win32.c │ │ ├── modules-closedloop.f │ │ ├── modules-coronary.f │ │ ├── modules.f │ │ ├── partition.cxx │ │ ├── proces-varwall.f │ │ ├── readnblk-varwall.f │ │ ├── shptet.c │ │ ├── solver_subroutines.f │ │ ├── symtet.c │ │ ├── symtri.c │ │ ├── tmrc.c │ │ ├── updhistconv-coronary.f │ │ ├── use_vtk.cxx │ │ ├── varwall_subroutines.f │ │ └── write_restart_files.c ├── Scripts │ ├── CMakeLists.txt │ ├── README-install │ ├── README-postinstall │ ├── SimVascularScriptMacros.cmake │ ├── executable │ │ ├── developer │ │ │ ├── locate-linux-script.in │ │ │ ├── svpost-linux.in │ │ │ ├── svpost-windows.in │ │ │ ├── svpre-linux.in │ │ │ ├── svpre-windows.in │ │ │ ├── svsolver-linux.in │ │ │ ├── svsolver-nompi-linux.in │ │ │ ├── svsolver-nompi-windows.in │ │ │ └── svsolver-windows.in │ │ └── install │ │ │ ├── svpost-linux.in │ │ │ ├── svpost-windows.in │ │ │ ├── svpre-linux.in │ │ │ ├── svpre-windows.in │ │ │ ├── svsolver-linux.in │ │ │ ├── svsolver-nompi-linux.in │ │ │ ├── svsolver-nompi-windows.in │ │ │ └── svsolver-windows.in │ └── home-locate-linux.sh └── ThirdParty │ ├── README │ ├── metis │ ├── CMakeLists.txt │ ├── Makefile │ ├── simvascular_metis.h.in │ └── simvascular_metis │ │ ├── CHANGES │ │ ├── CHANGES.nate.2013.11.26 │ │ ├── CMakeLists.txt │ │ ├── Doc │ │ └── manual.ps │ │ ├── FILES │ │ ├── Graphs │ │ ├── 0README │ │ ├── 4elt.graph │ │ ├── metis.mesh │ │ └── test.mgraph │ │ ├── INSTALL │ │ ├── Lib │ │ ├── CMakeLists.txt │ │ ├── Makefile │ │ ├── Makefile.metis.org │ │ ├── Makefile.windows │ │ ├── balance.c │ │ ├── bucketsort.c │ │ ├── ccgraph.c │ │ ├── coarsen.c │ │ ├── compress.c │ │ ├── debug.c │ │ ├── defs.h │ │ ├── estmem.c │ │ ├── fm.c │ │ ├── fortran.c │ │ ├── frename.c │ │ ├── graph.c │ │ ├── initpart.c │ │ ├── kmetis.c │ │ ├── kvmetis.c │ │ ├── kwayfm.c │ │ ├── kwayrefine.c │ │ ├── kwayvolfm.c │ │ ├── kwayvolrefine.c │ │ ├── macros.h │ │ ├── match.c │ │ ├── mbalance.c │ │ ├── mbalance2.c │ │ ├── mcoarsen.c │ │ ├── memory.c │ │ ├── mesh.c │ │ ├── meshpart.c │ │ ├── metis-wrapper.h │ │ ├── metis.h │ │ ├── metis.h.org │ │ ├── mfm.c │ │ ├── mfm2.c │ │ ├── mincover.c │ │ ├── minitpart.c │ │ ├── minitpart2.c │ │ ├── mkmetis.c │ │ ├── mkwayfmh.c │ │ ├── mkwayrefine.c │ │ ├── mmatch.c │ │ ├── mmd.c │ │ ├── mpmetis.c │ │ ├── mrefine.c │ │ ├── mrefine2.c │ │ ├── mutil.c │ │ ├── myqsort.c │ │ ├── ometis.c │ │ ├── parmetis.c │ │ ├── pmetis.c │ │ ├── pqueue.c │ │ ├── proto.h │ │ ├── refine.c │ │ ├── rename.h │ │ ├── separator.c │ │ ├── sfm.c │ │ ├── srefine.c │ │ ├── stat.c │ │ ├── struct.h │ │ ├── subdomains.c │ │ ├── temp │ │ │ ├── metis.h │ │ │ └── metis_defs.h │ │ ├── timing.c │ │ └── util.c │ │ ├── Makefile │ │ ├── Makefile.in │ │ ├── Makefile.in.windows │ │ ├── Programs │ │ ├── Makefile │ │ ├── graphchk.c │ │ ├── io.c │ │ ├── kmetis.c │ │ ├── mesh2dual.c │ │ ├── mesh2nodal.c │ │ ├── oemetis.c │ │ ├── onmetis.c │ │ ├── partdmesh.c │ │ ├── partnmesh.c │ │ ├── pmetis.c │ │ └── smbfactor.c │ │ ├── README.simvascular │ │ ├── Test │ │ ├── Makefile │ │ └── mtest.c │ │ └── VERSION │ ├── msmpi │ ├── Include │ │ ├── mpi.f90 │ │ ├── mpi.h │ │ ├── mpi.h.org │ │ ├── mpif.h │ │ ├── mpif.h.org │ │ ├── mpio.h │ │ ├── mspms.h │ │ ├── pmidbg.h │ │ ├── x64 │ │ │ └── mpifptr.h │ │ └── x86 │ │ │ └── mpifptr.h │ ├── Installers │ │ ├── MSMpiSetup.exe │ │ └── msmpisdk.msi │ ├── Lib │ │ ├── x64 │ │ │ ├── msmpi.lib │ │ │ ├── msmpifec.lib │ │ │ └── msmpifmc.lib │ │ └── x86 │ │ │ ├── msmpi.lib │ │ │ ├── msmpifec.lib │ │ │ ├── msmpifes.lib │ │ │ ├── msmpifmc.lib │ │ │ └── msmpifms.lib │ └── License │ │ └── license_sdk.rtf │ ├── nspcg │ ├── CMakeLists.txt │ ├── Makefile │ ├── simvascular_nspcg.h.in │ └── simvascular_nspcg │ │ ├── CMakeLists.txt │ │ ├── Makefile │ │ ├── README.simvascular │ │ ├── info.txt │ │ ├── nspcg1.f │ │ ├── nspcg2.f │ │ ├── nspcg3.f │ │ ├── nspcg4.f │ │ ├── nspcg5.f │ │ ├── quick.tex │ │ ├── tstnsp1.f │ │ ├── tstnsp2.f │ │ ├── tstnsp3.f │ │ ├── tstnsp4.f │ │ ├── tstnsp5.f │ │ └── usernsp.tex │ ├── sparse │ ├── CMakeLists.txt │ ├── Makefile │ ├── simvascular_sparse.h.in │ └── simvascular_sparse │ │ ├── CMakeLists.txt │ │ ├── Makefile │ │ ├── README.simvascular │ │ ├── smpl-test.c │ │ ├── spAllocate.c │ │ ├── spBuild.c │ │ ├── spConfig.h │ │ ├── spDefs.h │ │ ├── spFactor.c │ │ ├── spFortran.c │ │ ├── spMatrix.h │ │ ├── spOutput.c │ │ ├── spSMP.c │ │ ├── spSolve.c │ │ ├── spSpice3.h │ │ ├── spTest.c │ │ └── spUtils.c │ └── zlib │ ├── CMakeLists.txt │ ├── Makefile │ ├── simvascular_zlib.h.in │ └── simvascular_zlib │ ├── CMakeLists.txt │ ├── Makefile │ ├── READ.simvascular │ ├── adler32.c │ ├── compress.c │ ├── crc32.c │ ├── crc32.h │ ├── deflate.c │ ├── deflate.h │ ├── example.c │ ├── gzio.c │ ├── infback.c │ ├── inffast.c │ ├── inffast.h │ ├── inffixed.h │ ├── inflate.c │ ├── inflate.h │ ├── inftrees.c │ ├── inftrees.h │ ├── minigzip.c │ ├── simvascular_zlib_mangle.h │ ├── trees.c │ ├── trees.h │ ├── uncompr.c │ ├── zconf.h │ ├── zconf.in.h │ ├── zlib.def │ ├── zlib.h │ ├── ztest2978.c │ ├── zutil.c │ └── zutil.h ├── Distribution ├── CMakeLists.txt ├── OSX │ ├── Info.plist.in │ ├── cpmview.icns │ ├── simvascular.icns │ ├── simvascular.sh │ └── simvascular.sh.in ├── license.txt └── windows │ ├── msi-banner.bmp │ ├── msi-banner.jpg │ ├── msi-dialog.bmp │ ├── msi-dialog.jpg │ ├── mywix.template-notargets.in │ ├── mywix.template.in │ ├── registry-patch-notargets.xml.in │ ├── registry-patch.xml.in │ └── simvascular.ico ├── Documentation └── simvascular.Doxyfile.in ├── Externals ├── CMakeExternals │ ├── SvExtOptions.cmake │ └── VTK.cmake ├── CMakeLists.txt ├── Make │ ├── 2017.01 │ │ ├── BuildHelpers │ │ │ ├── CompileScripts │ │ │ │ ├── compile-cmake-vtk-generic.sh │ │ │ │ ├── compile-make-tcl-generic.sh │ │ │ │ ├── sed-script-x64_cygwin-options-cl.sh │ │ │ │ ├── sed-script-x64_linux-options-gcc.sh │ │ │ │ ├── sed-script-x64_mac_osx-options-clang.sh │ │ │ │ ├── tcl-linux-generic.sh │ │ │ │ ├── tcl-mac_osx-generic.sh │ │ │ │ ├── tcl-mingw64-generic.sh │ │ │ │ ├── tcl-osx-generic.sh │ │ │ │ └── tcl-windows-generic.sh │ │ │ ├── CygwinHelpers │ │ │ │ ├── clean-env.sh │ │ │ │ ├── msvc_2010_x64 │ │ │ │ └── msvc_2013_x64 │ │ │ ├── Patches │ │ │ │ ├── patch-source-tcltk-8.5.sh │ │ │ │ ├── patch-source-vtk-6.2.sh │ │ │ │ ├── patch-source-vtk-6.3.sh │ │ │ │ ├── tk-8.5.18-win-ttkWinXPTheme.c │ │ │ │ ├── vtk-6.2.0-IO-Video-vtkWin32VideoSource.cxx.from-master-2015-07-20 │ │ │ │ ├── vtk-6.2.0-ThirdParty-TclTk-internals-tk8.5-tkWinPort.h │ │ │ │ ├── vtk-6.2.0-ThirdParty-hdf5-vtkhdf5-src-H5system.c │ │ │ │ ├── vtk-6.2.0-ThirdParty-hdf5-vtkhdf5-src-H5win32defs.h │ │ │ │ ├── vtk-6.3.0-ThirdParty-TclTk-internals-tk8.5-tkWinPort.h │ │ │ │ ├── vtk-6.3.0-ThirdParty-hdf5-vtkhdf5-src-H5system.c │ │ │ │ └── vtk-6.3.0-ThirdParty-hdf5-vtkhdf5-src-H5win32defs.h │ │ │ └── Scripts │ │ │ │ ├── create-archives-generic.sh │ │ │ │ ├── superbuild-linux-gcc.sh │ │ │ │ ├── superbuild-mac_osx-clang.sh │ │ │ │ ├── superbuild-windows-cl.sh │ │ │ │ ├── tar-to-zip-all.sh │ │ │ │ └── untar-unzip-source-all.sh │ │ ├── build-sv-externals-helper-wget-generic.sh │ │ ├── build-sv-externals-linux.sh │ │ ├── build-sv-externals-mac_osx.sh │ │ └── build-sv-externals-windows.sh │ └── 2019.06 │ │ ├── BuildHelpers │ │ ├── CompileScripts │ │ │ ├── compile-cmake-vtk-generic.sh │ │ │ ├── create-toplevel-build-dir.sh │ │ │ ├── sed-script-x64_amazon_2019_03-options-gcc.sh │ │ │ ├── sed-script-x64_ami_2018_03-options-gcc.sh │ │ │ ├── sed-script-x64_centos_7-options-gcc.sh │ │ │ ├── sed-script-x64_centos_8-options-gcc.sh │ │ │ ├── sed-script-x64_cygwin-options-cl.sh │ │ │ ├── sed-script-x64_mac_osx-options-clang.sh │ │ │ ├── sed-script-x64_ubuntu_16-options-gcc.sh │ │ │ ├── sed-script-x64_ubuntu_18-options-gcc.sh │ │ │ └── sed-script-x64_ubuntu_19-options-gcc.sh │ │ └── Scripts │ │ │ ├── build-sv-externals-helper-wget-generic.sh │ │ │ ├── build-sv-externals-helper-wget-generic.sh~ │ │ │ ├── check-for-c-opensource-in-config-cmake.tcl │ │ │ ├── create-archives-generic.sh │ │ │ ├── remove-all-dashes-in-name.tcl │ │ │ ├── replace-explicit-paths-in-config-cmake.tcl │ │ │ ├── superbuild-linux-gcc.sh │ │ │ ├── superbuild-mac_osx-clang.sh │ │ │ ├── superbuild-windows-cl.sh │ │ │ ├── tar-to-zip-all.sh │ │ │ └── untar-unzip-source-all.sh │ │ ├── build-sv-externals-linux.sh │ │ ├── build-sv-externals-mac_osx.sh │ │ └── build-sv-externals-windows.sh └── Patches │ └── 2019.06 │ ├── patch-vtk-8.1.1-tk-windows.patch │ └── patch-vtk-8.1.1-windows.patch ├── Licenses ├── ExternalOpenSourcePackages │ ├── README-external-licenses-academic-use-only.txt │ ├── README-external-licenses-gpl.txt │ ├── README-external-licenses-lgpl.txt │ └── README-external-licenses-unrestrictive.txt └── LesLib │ └── README-LESLIB.txt ├── README.md ├── svSolver_ExternalTissueSupport_README.txt └── travis ├── travis_build.sh ├── travis_cmake_config.sh └── travis_get_cmake_latest.sh /.gitignore: -------------------------------------------------------------------------------- 1 | Code/SV3 2 | build 3 | .project 4 | Tcl/.buildpath 5 | Tcl/.project 6 | Code/FlowSolvers/.cproject 7 | */CMakeLists.txt.user 8 | 9 | !Code/ThirdParty/vmtk/.project 10 | !Code/Source/ImageProcessing/.project 11 | !Code/Source/PostProcessing/.project 12 | Code/Source/.cproject 13 | !Code/Source/Segmentation/ITK/ITKCode/.project 14 | !Code/Source/Segmentation/ITK/Include/.project 15 | !Code/Source/Segmentation/ITK/Util/.project 16 | !Code/Source/Segmentation/ITK/.project 17 | !Code/Source/Segmentation/cvLevelSet/.project 18 | !Code/Source/Segmentation/.project 19 | !BuildWithMake/Release/tmp/.project 20 | !BuildWithMake/Lib/.project 21 | !BuildWithMake/Bin/.project 22 | !Code/FlowSolvers/ThreeDSolver/dummyMPI/.project 23 | !BuildWithMake/CygwinHelpers/.project 24 | !Tcl/External/xf-4.3/old_notes/.project 25 | !Tcl/External/xf-4.3/src/.project 26 | !Tcl/External/xf-4.3/Help/.project 27 | !Tcl/External/xf-4.3/additionals/.project 28 | !Tcl/External/xf-4.3/xfappdef/.project 29 | !Tcl/External/xf-4.3/templates/Combined/.project 30 | !Tcl/External/xf-4.3/templates/Widgets/.project 31 | !Tcl/External/xf-4.3/templates/StanfordWidgets/.project 32 | !Tcl/External/xf-4.3/templates/Procedures/.project 33 | !Tcl/External/xf-4.3/templates/.project 34 | !Tcl/External/xf-4.3/xftutorial/script.xf/.project 35 | !Tcl/External/xf-4.3/xftutorial/script.xfjp/.project 36 | !Tcl/External/xf-4.3/xftutorial/.project 37 | !Tcl/External/xf-4.3/lib/icons/.project 38 | !Tcl/External/xf-4.3/lib/.project 39 | !Tcl/External/xf-4.3/xfhardcopy/.project 40 | !Tcl/External/xf-4.3/procedures/.project 41 | !Tcl/External/xf-4.3/elements/.project 42 | !Tcl/External/xf-4.3/old/.project 43 | !Tcl/External/xf-4.3/.project 44 | !Code/ThirdParty/msmpi/License/.project 45 | !Code/ThirdParty/msmpi/Include/x64/.project 46 | !Code/ThirdParty/msmpi/Include/x86/.project 47 | !Code/ThirdParty/msmpi/Include/.project 48 | !Code/ThirdParty/msmpi/Lib/x64/.project 49 | !Code/ThirdParty/msmpi/Lib/x86/.project 50 | !Code/ThirdParty/msmpi/Lib/.project 51 | !Code/ThirdParty/msmpi/.project 52 | !Code/ThirdParty/msmpi/Installers/.project 53 | !BuildWithMake/Release/windows_installer_packages/.project 54 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "Code/Licensed/ParasolidSolidModel"] 2 | path = Code/Licensed/ParasolidSolidModel 3 | url = git@github.com:SimVascular/LicensedPlugin-ParasolidSolidModel.git 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: cpp 2 | 3 | matrix: 4 | include: 5 | - os: linux 6 | compiler: gcc 7 | dist: bionic 8 | sudo: required 9 | env: WITH_CMAKE=true SV_EXTERNALS_VERSION_NUMBER=2019.06 BUILD_VTK=false 10 | - os: linux 11 | compiler: gcc 12 | dist: xenial 13 | sudo: required 14 | env: WITH_CMAKE=true SV_EXTERNALS_VERSION_NUMBER=2019.06 BUILD_VTK=false 15 | - os: osx 16 | compiler: clang 17 | osx_image: xcode9.4 18 | sudo: required 19 | env: WITH_CMAKE=true SV_EXTERNALS_VERSION_NUMBER=2019.06 BUILD_VTK=false 20 | allow_failures: 21 | - os: osx 22 | 23 | addons: 24 | apt: 25 | packages: 26 | - gfortran 27 | - libglu1-mesa-dev 28 | - libgl1-mesa-dev 29 | - libmpich-dev 30 | 31 | git: 32 | submodules: false 33 | 34 | before_install: 35 | - export NUM_THREADS=4 36 | - export cwd=$(pwd) 37 | - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then cwd=$(pwd -W); fi 38 | - echo "CWD=$cwd" 39 | - export SCRIPTS=$cwd/travis 40 | - export BUILD_DIR=$cwd/build 41 | - export SV_TOP_DIR=$cwd 42 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi 43 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gcc ; fi 44 | - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install mpich; fi 45 | - if $WITH_CMAKE; then $SCRIPTS/travis_get_cmake_latest.sh; fi 46 | 47 | script: $SCRIPTS/travis_build.sh 48 | -------------------------------------------------------------------------------- /BuildWithMake/Docs/Doxygen/mainpage.cxx: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009-2011 Open Source Medical Software Corporation, 2 | * University of California, San Diego. 3 | * 4 | * Portions of the code Copyright (c) 1998-2007 Stanford University, 5 | * Charles Taylor, Nathan Wilson, Ken Wang. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining 8 | * a copy of this software and associated documentation files (the 9 | * "Software"), to deal in the Software without restriction, including 10 | * without limitation the rights to use, copy, modify, merge, publish, 11 | * distribute, sublicense, and/or sell copies of the Software, and to 12 | * permit persons to whom the Software is furnished to do so, subject 13 | * to the following conditions: 14 | * 15 | * The above copyright notice and this permission notice shall be included 16 | * in all copies or substantial portions of the Software. 17 | * 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 19 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 21 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 22 | * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 23 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 24 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 25 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 26 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 27 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 28 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | */ 30 | 31 | /*! \mainpage SimVascular Documentation 32 | * 33 | * 34 | * \section cvsim_main_sec 35 | * 36 | * Software for modeling and simulating blood flow. 37 | * 38 | * \section useful_sec Useful Links 39 | * 40 | * VTK 41 | *
42 | * ITK 43 | *
44 | * Tcl/Tk 45 | *
46 | * 47 | *
48 | * 49 | */ 50 | 51 | -------------------------------------------------------------------------------- /BuildWithMake/Docs/Makefile: -------------------------------------------------------------------------------- 1 | # Hey emacs, this is a -*- makefile -*- 2 | 3 | TOP = .. 4 | 5 | include $(TOP)/include.mk 6 | 7 | DATEVAR = `date +%F` 8 | 9 | all: cxxdocs tcldocs flowsolverdocs post-build 10 | 11 | cxxdocs: 12 | -rm -f sedscript 13 | -rm -f useme.Doxyfile 14 | -rm -Rf htmldocs/cxx_html 15 | -mkdir -p htmldocs 16 | -echo "puts \"s+REPLACEME_SV_DOX_OUTPUT_DIR+[file rootname `pwd`]/htmldocs+g\"" | tclsh > sedscript 17 | -echo "puts \"s+REPLACEME_SV_DOX_INPUT_DIR+[file rootname `pwd`]/../../Code+g\"" | tclsh >> sedscript 18 | -echo "puts \"s+REPLACEME_SV_PROJECT_NUMBER+${DATEVAR}+g\"" | tclsh >> sedscript 19 | -sed -f sedscript simvascular.Doxyfile > useme.Doxyfile 20 | -doxygen useme.Doxyfile 21 | -rm useme.Doxyfile 22 | -rm sedscript 23 | 24 | tcldocs: 25 | -rm -f htmldocs/tcl_all_html 26 | -mkdir -p htmldocs/tcl_all_html 27 | -tclsh /SV15/src/autodoc/autodoc -srcdir `pwd`/../../Tcl/SimVascular_2.0 -outputdir `pwd`/htmldocs/tcl_all_html 28 | -cp styles.css `pwd`/htmldocs/tcl_all_html 29 | -rm -f htmldocs/tcl_common_and_core_html 30 | -rm -f -R TclCode 31 | -mkdir -p htmldocs/tcl_common_and_core_html 32 | -mkdir -p TclCode 33 | -svn export --force $(TOP)/../Tcl/Common TclCode/Common 34 | -svn export --force $(TOP)/../Tcl/SimVascular_2.0/Core TclCode/Core 35 | -tclsh /SV15/src/autodoc/autodoc -srcdir `pwd`/TclCode -outputdir `pwd`/htmldocs/tcl_common_and_core_html 36 | -cp styles.css `pwd`/htmldocs/tcl_common_and_core_html 37 | -rm -f -R TclCode 38 | 39 | flowsolverdocs: 40 | -rm -f sedscript 41 | -rm -f useme.Doxyfile 42 | -rm -f htmldocs/flowsolver_html 43 | -mkdir -p htmldocs 44 | -echo "puts \"s+REPLACEME_SV_DOX_OUTPUT_DIR+[file rootname `pwd`]/htmldocs+g\"" | tclsh > sedscript 45 | -echo "s+REPLACEME_SV_PROJECT_NUMBER+${DATEVAR}+g" >> sedscript 46 | -sed -f sedscript flowsolver.Doxyfile > useme.Doxyfile 47 | -doxygen useme.Doxyfile 48 | -rm useme.Doxyfile 49 | -rm sedscript 50 | 51 | post-build: 52 | -cp index.html htmldocs/ 53 | -rm -f htmldocs-${DATEVAR}.tar.gz 54 | -tar cvzf htmldocs-${DATEVAR}.tar.gz htmldocs/ 55 | 56 | clean: veryclean 57 | 58 | veryclean: 59 | if [ -e sedscript ];then /bin/rm -f sedscript;fi 60 | if [ -e useme.Doxyfile ];then /bin/rm -f useme.Doxyfile;fi 61 | if [ -e htmldocs ];then /bin/rm -Rf htmldocs;fi 62 | if [ -e TclCode ];then /bin/rm -Rf TclCode;fi 63 | 64 | # 65 | -------------------------------------------------------------------------------- /BuildWithMake/Docs/index.html: -------------------------------------------------------------------------------- 1 | 2 |

3 | SimVascular C++ Docs 4 |
5 | svSolver Fortran Docs 6 |
7 | SV Tcl Docs (common&core) 8 |
9 | SV Tcl (all) 10 |
11 |

12 | 13 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/compiler.clang.x64_macosx.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_macosx) 2 | SHELL =/bin/sh 3 | CXX = clang++ -pthread -w 4 | CC = clang -pthread -w 5 | CXXDEP = $(CXX) -MM 6 | CCDEP = $(CC) -MM 7 | AR = ar -cru 8 | ifeq ($(MAKE_FULLY_OPTIMIZED),1) 9 | OPT_FLAGS = -O3 -fPIC 10 | DEBUG_FLAGS = 11 | LINK_EXE = $(CXX) -o 12 | else 13 | ifeq ($(MAKE_OPTIMIZED),1) 14 | DEBUG_FLAGS = 15 | OPT_FLAGS = -O2 -fPIC 16 | LINK_EXE = $(CXX) -o 17 | else 18 | DEBUG_FLAGS = -O0 -g -fstack-protector-all 19 | OPT_FLAGS = 20 | LINK_EXE = $(CXX) -g -fstack-protector-all -o 21 | endif 22 | endif 23 | # SHAR = $(CXX) -dynamiclib -current_version 1.0 -compatibility_version 1.0 -fvisibility=hidden -o 24 | SHAR = $(CXX) -dynamiclib -current_version 1.0 -compatibility_version 1.0 -o 25 | SOEXT = dylib 26 | STATICEXT = a 27 | OBJECTEXT = o 28 | EXEEXT = 29 | BUILDFLAGS = $(GLOBAL_DEFINES) 30 | GLOBAL_CXXFLAGS = $(BUILDFLAGS) $(DEBUG_FLAGS) $(OPT_FLAGS) 31 | GLOBAL_CXXFLAGS += -fpermissive 32 | ifeq ($(SV_USE_CXX11),1) 33 | GLOBAL_CXXFLAGS += -std=c++11 34 | endif 35 | GLOBAL_CCFLAGS = $(BUILDFLAGS) $(DEBUG_FLAGS) $(OPT_FLAGS) 36 | GLOBAL_LFLAGS = -lz -framework GLUT -framework OpenGL -framework Cocoa 37 | ifeq ($(USE_SYSTEM_TCLTK),1) 38 | GLOBAL_LFLAGS += -framework Tcl -framework Tk 39 | endif 40 | ifeq ($(LINK_WITH_DEBUG),1) 41 | GLOBAL_LFLAGS += -g 42 | endif 43 | GLOBAL_LFLAGS += -lm 44 | SHARED_LFLAGS = 45 | STATIC_FLAG = 46 | DYNAMIC_FLAG = 47 | TEMPLATE_AR = $(AR) 48 | CC_LIBS = 49 | CXX_LIBS = 50 | # LINK_EXE = $(CXX) -L$(TOP)/Lib -o 51 | LIBPATH_COMPILER_FLAG = -L 52 | LIBFLAG = -l 53 | SVLIBFLAG = -l 54 | endif 55 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/compiler.gcc.x64_linux.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_linux) 2 | SHELL =/bin/sh 3 | CXX = g++ -pthread -w 4 | CC = gcc -pthread -w 5 | CXXDEP = $(CXX) -MM 6 | CCDEP = $(CC) -MM 7 | AR = ar -cru 8 | ifeq ($(MAKE_FULLY_OPTIMIZED),1) 9 | OPT_FLAGS = -O3 -fPIC 10 | DEBUG_FLAGS = 11 | LINK_EXE = $(CXX) -o 12 | else 13 | ifeq ($(MAKE_OPTIMIZED),1) 14 | DEBUG_FLAGS = 15 | OPT_FLAGS = -O2 -fPIC 16 | LINK_EXE = $(CXX) -o 17 | else 18 | DEBUG_FLAGS = -O0 -g -fstack-protector-all 19 | OPT_FLAGS = 20 | LINK_EXE = $(CXX) -g -fstack-protector-all -o 21 | endif 22 | endif 23 | ifeq ($(SV_USE_OPENCASCADE),1) 24 | OPT_FLAGS = -std=gnu++11 -fPIC 25 | endif 26 | SHAR = $(CXX) -shared -o 27 | SOEXT = so 28 | STATICEXT = a 29 | OBJECTEXT = o 30 | EXEEXT = 31 | BUILDFLAGS = $(GLOBAL_DEFINES) 32 | GLOBAL_CXXFLAGS = $(BUILDFLAGS) $(DEBUG_FLAGS) $(OPT_FLAGS) 33 | GLOBAL_CXXFLAGS += -fpermissive 34 | GLOBAL_CCFLAGS = $(BUILDFLAGS) $(DEBUG_FLAGS) $(OPT_FLAGS) 35 | GLOBAL_LFLAGS = 36 | ifeq ($(LINK_WITH_DEBUG),1) 37 | GLOBAL_LFLAGS += -g 38 | endif 39 | GLOBAL_LFLAGS += -lm 40 | SHARED_LFLAGS = 41 | STATIC_FLAG = 42 | DYNAMIC_FLAG = 43 | TEMPLATE_AR = $(AR) 44 | CC_LIBS = 45 | CXX_LIBS = 46 | # LINK_EXE = $(CXX) -L$(TOP)/Lib -o 47 | LIBPATH_COMPILER_FLAG = -L 48 | LIBFLAG = -l 49 | SVLIBFLAG = -l 50 | LIBLINKEXT = 51 | endif 52 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/compiler.gcc.x64_macosx.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_macosx) 2 | SHELL =/bin/sh 3 | CXX = g++-mp-5 -pthread -w 4 | CC = gcc-mp-5 -pthread -w 5 | CXXDEP = $(CXX) -MM 6 | CCDEP = $(CC) -MM 7 | AR = ar -cru 8 | ifeq ($(MAKE_FULLY_OPTIMIZED),1) 9 | OPT_FLAGS = -O3 -fPIC 10 | DEBUG_FLAGS = 11 | LINK_EXE = $(CXX) -o 12 | else 13 | ifeq ($(MAKE_OPTIMIZED),1) 14 | DEBUG_FLAGS = 15 | OPT_FLAGS = -O2 -fPIC 16 | LINK_EXE = $(CXX) -o 17 | else 18 | DEBUG_FLAGS = -O0 -g -fstack-protector-all 19 | OPT_FLAGS = 20 | LINK_EXE = $(CXX) -g -fstack-protector-all -o 21 | endif 22 | endif 23 | SHAR = $(CXX) -shared -o 24 | SOEXT = so 25 | STATICEXT = a 26 | OBJECTEXT = o 27 | EXEEXT = 28 | BUILDFLAGS = $(GLOBAL_DEFINES) 29 | GLOBAL_CXXFLAGS = $(BUILDFLAGS) $(DEBUG_FLAGS) $(OPT_FLAGS) 30 | GLOBAL_CXXFLAGS += -fpermissive 31 | GLOBAL_CCFLAGS = $(BUILDFLAGS) $(DEBUG_FLAGS) $(OPT_FLAGS) 32 | GLOBAL_LFLAGS = 33 | ifeq ($(LINK_WITH_DEBUG),1) 34 | GLOBAL_LFLAGS += -g 35 | endif 36 | GLOBAL_LFLAGS += -lm 37 | SHARED_LFLAGS = 38 | STATIC_FLAG = 39 | DYNAMIC_FLAG = 40 | TEMPLATE_AR = $(AR) 41 | CC_LIBS = 42 | CXX_LIBS = 43 | # LINK_EXE = $(CXX) -L$(TOP)/Lib -o 44 | LIBPATH_COMPILER_FLAG = -L 45 | LIBFLAG = -l 46 | SVLIBFLAG = -l 47 | endif 48 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/compiler.gfortran.x64_linux.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_linux) 2 | F90 = gfortran -pthread -cpp 3 | ifeq ($(MAKE_FULLY_OPTIMIZED),1) 4 | OPT_FFLAGS = -O3 -fPIC 5 | DEBUG_FFLAGS = 6 | else 7 | ifeq ($(MAKE_OPTIMIZED),1) 8 | OPT_FFLAGS = -O2 -fPIC 9 | DEBUG_FFLAGS = 10 | else 11 | OPT_FFLAGS = 12 | DEBUG_FFLAGS = -O0 -g 13 | endif 14 | endif 15 | GLOBAL_FFLAGS = $(BUILDFLAGS) $(DEBUG_FFLAGS) $(OPT_FFLAGS) -ffixed-line-length-132 -fmax-stack-var-size=256 16 | F90_LIBS = -lgfortran -lm 17 | ifeq ($(LINK_WITH_DEBUG),1) 18 | GLOBAL_LFLAGS += -g 19 | endif 20 | endif 21 | 22 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/compiler.gfortran.x64_macosx.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_macosx) 2 | F90 = gfortran -pthread -cpp 3 | ifeq ($(MAKE_FULLY_OPTIMIZED),1) 4 | OPT_FFLAGS = -O3 -fPIC 5 | DEBUG_FFLAGS = 6 | else 7 | ifeq ($(MAKE_OPTIMIZED),1) 8 | OPT_FFLAGS = -O2 -fPIC 9 | DEBUG_FFLAGS = 10 | else 11 | OPT_FFLAGS = 12 | DEBUG_FFLAGS = -O0 -g 13 | endif 14 | endif 15 | GLOBAL_FFLAGS = $(BUILDFLAGS) $(DEBUG_FFLAGS) $(OPT_FFLAGS) -ffixed-line-length-132 -fmax-stack-var-size=256 16 | F90_LIBS = $(wordlist 2,99,$(shell mpif90 -link_info)) -lm 17 | ifeq ($(LINK_WITH_DEBUG),1) 18 | GLOBAL_LFLAGS += -g 19 | endif 20 | endif 21 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/compiler.icpc.x64_linux.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_linux) 2 | SHELL =/bin/sh 3 | CXX = icpc -pthread 4 | CC = icc -pthread 5 | CXXDEP = icpc -MM 6 | CCDEP = icc -MM 7 | AR = ar -cru 8 | ifeq ($(MAKE_FULLY_OPTIMIZED),1) 9 | OPT_FLAGS = -O3 -fPIC 10 | DEBUG_FLAGS = 11 | LINK_EXE = $(CXX) -o 12 | else 13 | ifeq ($(MAKE_OPTIMIZED),1) 14 | DEBUG_FLAGS = 15 | OPT_FLAGS = -O2 -fPIC 16 | LINK_EXE = $(CXX) -o 17 | else 18 | DEBUG_FLAGS = -O0 -debug -g -fp-stack-check -fstack-protector-all 19 | OPT_FLAGS = 20 | LINK_EXE = $(CXX) -debug -g -fp-stack-check -fstack-protector-all -traceback -o 21 | endif 22 | endif 23 | SHAR = $(CXX) -shared -o 24 | SOEXT = so 25 | STATICEXT = a 26 | OBJECTEXT = o 27 | EXEEXT = 28 | BUILDFLAGS = $(GLOBAL_DEFINES) 29 | GLOBAL_CXXFLAGS = $(BUILDFLAGS) $(DEBUG_FLAGS) $(OPT_FLAGS) 30 | GLOBAL_CCFLAGS = $(BUILDFLAGS) $(DEBUG_FLAGS) $(OPT_FLAGS) 31 | GLOBAL_LFLAGS = 32 | GLOBAL_LFLAGS += -lm 33 | SHARED_LFLAGS = 34 | STATIC_FLAG = 35 | DYNAMIC_FLAG = 36 | TEMPLATE_AR = $(AR) 37 | CC_LIBS = 38 | CXX_LIBS = 39 | ifeq ($(LINK_WITH_DEBUG),1) 40 | GLOBAL_LFLAGS += -debug -g 41 | endif 42 | # LINK_EXE = $(CXX) -L$(TOP)/Lib -o 43 | LIBPATH_COMPILER_FLAG = -L 44 | LIBFLAG = -l 45 | SVLIBFLAG = -l 46 | endif 47 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/compiler.ifort.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | # ---------------------------------- 2 | # Platform-specific compiler options 3 | # ---------------------------------- 4 | 5 | ifeq ($(CLUSTER), x64_cygwin) 6 | F90 = ifort -fpp 7 | ifeq ($(MAKE_FULLY_OPTIMIZED),1) 8 | DEBUG_FFLAGS = 9 | OPT_FFLAGS = /MD /Ox 10 | else 11 | ifeq ($(MAKE_OPTIMIZED),1) 12 | DEBUG_FFLAGS = 13 | OPT_FFLAGS = /MD /Zi /O2 14 | else 15 | DEBUG_FFLAGS = /MD /Zi /Od /debug:all /debug:all /check:all -traceback 16 | endif 17 | endif 18 | GLOBAL_FFLAGS = $(BUILDFLAGS) $(DEBUG_FFLAGS) $(OPT_FFLAGS) /W0 /4L132 /heap-arrays:256 19 | ifeq ($(LINK_WITH_DEBUG),1) 20 | GLOBAL_LFLAGS += /DEBUG 21 | endif 22 | F90_LIBS = libifcore.lib libifport.lib libmmds.lib svml_disp.lib 23 | endif 24 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/compiler.ifort.x64_linux.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_linux) 2 | F90 = ifort -threads -fpp 3 | ifeq ($(MAKE_FULLY_OPTIMIZED),1) 4 | OPT_FFLAGS = -O3 -fPIC 5 | DEBUG_FFLAGS = 6 | else 7 | ifeq ($(MAKE_OPTIMIZED),1) 8 | OPT_FFLAGS = -O2 -fPIC 9 | DEBUG_FFLAGS = 10 | else 11 | OPT_FFLAGS = 12 | DEBUG_FFLAGS = -O0 -fPIC -debug -g -check -traceback 13 | endif 14 | endif 15 | GLOBAL_FFLAGS = $(BUILDFLAGS) $(DEBUG_FFLAGS) $(OPT_FFLAGS) \ 16 | -W0 -132 -heap-arrays 256 17 | ifeq ($(LINK_WITH_DEBUG),1) 18 | GLOBAL_LFLAGS += -g 19 | endif 20 | # F90_LIBS = -lifcoremt -lifport -limf -lintlc -ldl 21 | F90_LIBS = -lifcoremt -lifport -limf 22 | endif 23 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/compiler.ifort.x64_macosx.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_macosx) 2 | F90 = ifort -threads -fpp 3 | ifeq ($(MAKE_FULLY_OPTIMIZED),1) 4 | OPT_FFLAGS = -O3 -fPIC 5 | DEBUG_FFLAGS = 6 | else 7 | ifeq ($(MAKE_OPTIMIZED),1) 8 | OPT_FFLAGS = -O2 -fPIC 9 | DEBUG_FFLAGS = 10 | else 11 | OPT_FFLAGS = 12 | DEBUG_FFLAGS = -O0 -fPIC -debug -g -check -traceback 13 | endif 14 | endif 15 | GLOBAL_FFLAGS = $(BUILDFLAGS) $(DEBUG_FFLAGS) $(OPT_FFLAGS) \ 16 | -W0 -132 -heap-arrays 256 17 | ifeq ($(LINK_WITH_DEBUG),1) 18 | GLOBAL_LFLAGS += -g 19 | endif 20 | # F90_LIBS = -lifcoremt -lifport -limf -lintlc -ldl 21 | # F90_LIBS = -lifcoremt -lifport -limf 22 | F90_LIBS = /opt/intel/compilers_and_libraries_2016/mac/lib/libifcoremt.a \ 23 | /opt/intel/compilers_and_libraries_2016/mac/lib/libifport.a \ 24 | /opt/intel/compilers_and_libraries_2016/mac/lib/libimf.a \ 25 | /opt/intel/compilers_and_libraries_2016/mac/lib/libintlc.dylib \ 26 | /opt/intel/compilers_and_libraries_2016/mac/lib/libsvml.a 27 | endif 28 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/compiler.mingw-gcc.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | # ---------------------------------- 2 | # Platform-specific compiler options 3 | # ---------------------------------- 4 | 5 | ifeq ($(CLUSTER), x64_cygwin) 6 | SHELL =/bin/sh 7 | CXX = x86_64-w64-mingw32-g++ -w -fpermissive 8 | CC = x86_64-w64-mingw32-gcc -w 9 | CXXDEP = x86_64-w64-mingw32-g++ -MM 10 | CCDEP = x86_64-w64-mingw32-gcc -MM 11 | AR = x86_64-w64-mingw32-ar -cru 12 | ifeq ($(MAKE_FULLY_OPTIMIZED),1) 13 | DEBUG_FLAGS = 14 | OPT_FLAGS = -O3 15 | else 16 | ifeq ($(MAKE_OPTIMIZED),1) 17 | DEBUG_FLAGS = 18 | OPT_FLAGS = -O2 -g 19 | else 20 | OPT_FLAGS = 21 | DEBUG_FLAGS = -g 22 | endif 23 | endif 24 | SHAR = 25 | SOEXT = dll 26 | STATICEXT = lib 27 | OBJECTEXT = obj 28 | BUILDFLAGS = $(GLOBAL_DEFINES) 29 | GLOBAL_CXXFLAGS = $(BUILDFLAGS) $(DEBUG_FLAGS) $(OPT_FLAGS) 30 | GLOBAL_CCFLAGS = $(BUILDFLAGS) $(DEBUG_FLAGS) $(OPT_FLAGS) 31 | # GLOBAL_LFLAGS = /STACK:64000000,64000000 32 | # SOLVER_STCKSZ = /STACK:512000000,512000000 33 | ifeq ($(LINK_WITH_DEBUG),1) 34 | GLOBAL_LFLAGS += -g 35 | endif 36 | 37 | 38 | GLOBAL_LFLAGS = 39 | SHARED_LFLAGS = /DLL $(GLOBAL_LFLAGS) $(CXX_LIBS) 40 | STATIC_FLAG = 41 | DYNAMIC_FLAG = 42 | TEMPLATE_AR = $(AR) 43 | CC_LIBS = 44 | LINK_EXE = $(CXX) -L$(TOP)/Lib -o 45 | LIBPATH_COMPILER_FLAG = -L 46 | LIBFLAG = -l 47 | LIBCMD = lib 48 | SVLIBFLAG = -llib 49 | endif 50 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/compiler.mingw-gfortran.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | # ---------------------------------- 2 | # Platform-specific compiler options 3 | # ---------------------------------- 4 | 5 | ifeq ($(CLUSTER), x64_cygwin) 6 | F90 = x86_64-w64-mingw32-gfortran.exe -cpp 7 | ifeq ($(MAKE_FULLY_OPTIMIZED),1) 8 | DEBUG_FFLAGS = 9 | OPT_FFLAGS = -O2 10 | else 11 | ifeq ($(MAKE_OPTIMIZED),1) 12 | DEBUG_FFLAGS = 13 | OPT_FFLAGS = -g -O2 14 | else 15 | DEBUG_FFLAGS = -g -fcheck=all 16 | endif 17 | endif 18 | GLOBAL_FFLAGS = $(BUILDFLAGS) $(DEBUG_FFLAGS) $(OPT_FFLAGS) -ffixed-line-length-132 -fmax-stack-var-size=256 19 | ifeq ($(LINK_WITH_DEBUG),1) 20 | GLOBAL_LFLAGS += -g 21 | endif 22 | endif 23 | 24 | # required by msmpi headers 25 | GLOBAL_FFLAGS += -fno-range-check 26 | 27 | F90_LIBS = -lgfortran 28 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/compiler.vs10.1.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | # ---------------------------------- 2 | # Platform-specific compiler options 3 | # ---------------------------------- 4 | 5 | ifeq ($(CLUSTER), x64_cygwin) 6 | SHELL =/bin/sh 7 | CXX = CL 8 | CC = CL 9 | CXXDEP = g++ -MM 10 | CCDEP = gcc -MM 11 | AR = lib -out: 12 | ifeq ($(MAKE_FULLY_OPTIMIZED),1) 13 | DEBUG_FLAGS = 14 | OPT_FLAGS = /MD /Ox /EHsc 15 | else 16 | ifeq ($(MAKE_OPTIMIZED),1) 17 | DEBUG_FLAGS = 18 | OPT_FLAGS = /MD /Zi /O2 /EHsc /GS 19 | else 20 | OPT_FLAGS = 21 | DEBUG_FLAGS = /MD /Zi /Od /EHsc -D_CRT_SECURE_NO_DEPRECATE /GS /GR 22 | endif 23 | endif 24 | SHAR = link 25 | SOEXT = dll 26 | STATICEXT = lib 27 | OBJECTEXT = obj 28 | BUILDFLAGS = $(GLOBAL_DEFINES) 29 | GLOBAL_CXXFLAGS = $(BUILDFLAGS) $(DEBUG_FLAGS) $(OPT_FLAGS) 30 | GLOBAL_CCFLAGS = $(BUILDFLAGS) $(DEBUG_FLAGS) $(OPT_FLAGS) 31 | GLOBAL_LFLAGS = /STACK:64000000,64000000 32 | SOLVER_STCKSZ = /STACK:512000000,512000000 33 | ifeq ($(LINK_WITH_DEBUG),1) 34 | GLOBAL_LFLAGS += /DEBUG 35 | endif 36 | GLOBAL_LFLAGS += /LARGEADDRESSAWARE /INCREMENTAL:NO /FIXED:NO /RELEASE /NOLOGO \ 37 | /VERBOSE:LIB \ 38 | /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcd.lib \ 39 | /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcpmt.lib \ 40 | /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:libcpmtd.lib \ 41 | /NODEFAULTLIB:msvcrtd.lib \ 42 | /MACHINE:X64 -subsystem:console 43 | 44 | SHARED_LFLAGS = /DLL $(GLOBAL_LFLAGS) $(CXX_LIBS) 45 | STATIC_FLAG = 46 | DYNAMIC_FLAG = 47 | TEMPLATE_AR = $(AR) 48 | CC_LIBS = 49 | CXX_LIBS = Advapi32.lib Ws2_32.lib Shlwapi.lib 50 | LINK_EXE = link /out: 51 | LIBPATH_COMPILER_FLAG = /LIBPATH: 52 | LIBFLAG = 53 | LIBCMD = lib 54 | SVLIBFLAG =lib 55 | LIBLINKEXT =.lib 56 | endif 57 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/leslib-1.5.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_cygwin) 2 | LESLIB_DEFS = -DACUSIM_NT -DACUSIM_WIN -DACUSIM_WIN64 3 | LESLIB_INCDIR = -I $(LESLIB_TOP) 4 | LESLIB_TOP = $(LICENSED_SOFTWARE_TOPLEVEL)/leslib-1.5/win/x64 5 | LESLIB_LIBS = $(LIBPATH_COMPILER_FLAG)$(LESLIB_TOP) $(LIBFLAG)libles.lib 6 | LESLIB_LIBS += $(LIBFLAG)Advapi32.lib $(LIBFLAG)Ws2_32.lib 7 | endif 8 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/leslib-1.5.x64_linux.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_linux) 2 | LESLIB_DEFS = -DACUSIM_LINUX 3 | LESLIB_TOP = $(LICENSED_SOFTWARE_TOPLEVEL)/leslib-1.5/x64_linux 4 | LESLIB_INCDIR = -I $(LESLIB_TOP) 5 | LESLIB_LIBS = -L$(LESLIB_TOP) -lles 6 | #LESLIB_LIBS = -L$(LESLIB_TOP)/shared -lles -llapack 7 | endif 8 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/mpich.x64_linux.mk: -------------------------------------------------------------------------------- 1 | MPI_NAME = mpich 2 | MPI_INCDIR = $(wordlist 2,99,$(shell mpif90 -link_info)) 3 | MPI_LIBS = $(wordlist 2,99,$(shell mpicxx -link_info)) $(wordlist 2,99,$(shell mpif90 -link_info)) 4 | MPI_SO_PATH = 5 | MPIEXEC_PATH = 6 | MPIEXEC = mpiexec 7 | 8 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/mpich.x64_macosx.mk: -------------------------------------------------------------------------------- 1 | MPI_NAME = mpich 2 | MPI_INCDIR = $(wordlist 2,99,$(shell /opt/local/bin/mpif90-mpich-devel-clang -link_info)) 3 | MPI_LIBS = $(wordlist 2,99,$(shell /opt/local/bin/mpicxx-mpich-devel-clang -link_info)) $(wordlist 2,99,$(shell /opt/local/bin/mpif90-mpich-devel-clang -link_info)) 4 | MPI_SO_PATH = 5 | MPIEXEC_PATH = 6 | MPIEXEC = /opt/local/bin/mpiexec-mpich-devel-clang 7 | 8 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/mpich2-1.4p1.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_cygwin) 2 | MPI_NAME = mpich 3 | MPI_TOP = $(OPEN_SOFTWARE_BINARIES_TOPLEVEL)/../../unknown/x64/mpich2-1.4p1 4 | MPI_INCDIR = -I $(MPI_TOP)/include 5 | MPI_LIBS = $(LIBPATH_COMPILER_FLAG)$(MPI_TOP)/lib $(LIBFLAG)mpi.lib $(LIBFLAG)fmpich2.lib 6 | MPI_SO_PATH = $(MPI_TOP)/lib 7 | MPIEXEC_PATH = $(MPI_TOP)/bin 8 | MPIEXEC = mpiexec.exe 9 | endif 10 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/msmpi.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_cygwin) 2 | MPI_NAME = msmpi 3 | #MPI_TOP = C:/Program\ Files\ \(x86\)/Microsoft\ SDKs/MPI 4 | #MPI_INCDIR = -I$(MPI_TOP)/Include -I$(MPI_TOP)/Include/x64 5 | 6 | MPI_TOP = $(TOP)/../Code/ThirdParty/msmpi 7 | MPI_INCDIR = -I$(MPI_TOP)/Include -I$(MPI_TOP)/Include/x64 8 | MPI_LIBS = $(LIBPATH_COMPILER_FLAG)$(MPI_TOP)/Lib/x64 $(LIBFLAG)msmpifmc$(LIBLINKEXT) $(LIBFLAG)msmpi$(LIBLINKEXT) 9 | 10 | MPI_SO_PATH = 11 | MPIEXEC_PATH = 12 | MPIEXEC = 13 | endif 14 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/openmpi.x64_linux.mk: -------------------------------------------------------------------------------- 1 | MPI_NAME = openmpi 2 | MPI_INCDIR = $(shell mpif90 --showme:compile) 3 | MPI_LIBS = $(shell mpicxx --showme:link) $(shell mpif90 --showme:link) 4 | MPI_SO_PATH = $(shell which mpiexec)/../.. 5 | MPIEXEC_PATH = $(dir $(shell which mpiexec)) 6 | MPIEXEC = mpiexec 7 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/openmpi.x64_macosx.mk: -------------------------------------------------------------------------------- 1 | MPI_NAME = openmpi 2 | MPI_INCDIR = $(shell mpif90 --showme:compile) 3 | MPI_LIBS = $(shell mpicxx --showme:link) $(shell mpif90 --showme:link) 4 | MPI_SO_PATH = $(shell which mpiexec)/../.. 5 | MPIEXEC_PATH = $(dir $(shell which mpiexec)) 6 | MPIEXEC = mpiexec 7 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/rules.x64_linux.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_linux) 2 | $(BUILD_DIR)/%.d: %.cxx 3 | $(SHELL) -ec '$(CXXDEP) $(CXXFLAGS) $< \ 4 | | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ 5 | [ -s $@ ] || rm -f $@' 6 | 7 | $(BUILD_DIR)/%.d: %.c 8 | $(SHELL) -ec '$(CCDEP) $(CCFLAGS) $< \ 9 | | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ 10 | [ -s $@ ] || rm -f $@' 11 | 12 | $(BUILD_MPI_DIR)/%.d: %.cxx 13 | $(SHELL) -ec '$(CXXDEP) $(CXXFLAGS) $< \ 14 | | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ 15 | [ -s $@ ] || rm -f $@' 16 | 17 | $(BUILD_MPI_DIR)/%.d: %.c 18 | $(SHELL) -ec '$(CCDEP) $(CCFLAGS) $< \ 19 | | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ 20 | [ -s $@ ] || rm -f $@' 21 | 22 | $(BUILD_DIR)/%.o: %.cxx 23 | $(CXX) $(CXXFLAGS) -c $< -o $@ 24 | 25 | $(BUILD_DIR)/%.o: %.c 26 | $(CC) $(CCFLAGS) -c $< -o $@ 27 | 28 | $(BUILD_DIR)/%.o: %.f 29 | $(F90) $(FFLAGS) -c $< -o $@ 30 | 31 | $(BUILD_DIR)/%.o: %.f90 32 | $(F90) $(F90FLAGS) -c $< -o $@ 33 | 34 | $(BUILD_MPI_DIR)/%.o: %.cxx 35 | mkdir -p $(dir $@) 36 | $(CXX) $(CXXFLAGS) -c $< -o $@ 37 | 38 | $(BUILD_MPI_DIR)/%.o: %.c 39 | mkdir -p $(dir $@) 40 | $(CC) $(CCFLAGS) -c $< -o $@ 41 | 42 | $(BUILD_MPI_DIR)/%.o: %.f 43 | mkdir -p $(dir $@) 44 | $(F90) $(FFLAGS) -c $< -o $@ 45 | 46 | $(BUILD_MPI_DIR)/%.o: %.f90 47 | mkdir -p $(dir $@) 48 | $(F90) $(FFLAGS) -c $< -o $@ 49 | 50 | endif 51 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/rules.x64_macosx.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_macosx) 2 | $(BUILD_DIR)/%.d: %.cxx 3 | $(SHELL) -ec '$(CXXDEP) $(CXXFLAGS) $< \ 4 | | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ 5 | [ -s $@ ] || rm -f $@' 6 | 7 | $(BUILD_DIR)/%.d: %.c 8 | $(SHELL) -ec '$(CCDEP) $(CCFLAGS) $< \ 9 | | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ 10 | [ -s $@ ] || rm -f $@' 11 | 12 | $(BUILD_MPI_DIR)/%.d: %.cxx 13 | $(SHELL) -ec '$(CXXDEP) $(CXXFLAGS) $< \ 14 | | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ 15 | [ -s $@ ] || rm -f $@' 16 | 17 | $(BUILD_MPI_DIR)/%.d: %.c 18 | $(SHELL) -ec '$(CCDEP) $(CCFLAGS) $< \ 19 | | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ 20 | [ -s $@ ] || rm -f $@' 21 | 22 | $(BUILD_DIR)/%.o: %.cxx 23 | $(CXX) $(CXXFLAGS) -c $< -o $@ 24 | 25 | $(BUILD_DIR)/%.o: %.c 26 | $(CC) $(CCFLAGS) -c $< -o $@ 27 | 28 | $(BUILD_DIR)/%.o: %.f 29 | $(F90) $(FFLAGS) -c $< -o $@ 30 | 31 | $(BUILD_DIR)/%.o: %.f90 32 | $(F90) $(FFLAGS) -c $< -o $@ 33 | 34 | $(BUILD_MPI_DIR)/%.o: %.cxx 35 | mkdir -p $(dir $@) 36 | $(CXX) $(CXXFLAGS) -c $< -o $@ 37 | 38 | $(BUILD_MPI_DIR)/%.o: %.c 39 | mkdir -p $(dir $@) 40 | $(CC) $(CCFLAGS) -c $< -o $@ 41 | 42 | $(BUILD_MPI_DIR)/%.o: %.f 43 | mkdir -p $(dir $@) 44 | $(F90) $(FFLAGS) -c $< -o $@ 45 | 46 | $(BUILD_MPI_DIR)/%.o: %.f90 47 | mkdir -p $(dir $@) 48 | $(F90) $(F90FLAGS) -c $< -o $@ 49 | 50 | endif 51 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/tcltk-8.6.4.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_cygwin) 2 | BUILDFLAGS += -D__NON_STD_TCL_INSTALL 3 | TCL_BASE = $(OPEN_SOFTWARE_BINARIES_TOPLEVEL)/tcltk-8.6.4 4 | TK_BASE = $(OPEN_SOFTWARE_BINARIES_TOPLEVEL)/tcltk-8.6.4 5 | TCLTK_INCDIR = -I$(TCL_BASE)/include -I$(TK_BASE)/include 6 | TCLTK_LIBDIR = $(LIBPATH_COMPILER_FLAG)$(TCL_BASE)/lib $(LIBPATH_COMPILER_FLAG)$(TK_BASE)/lib 7 | TCLTK_DLLS = $(TCL_BASE)/bin/tcl86.$(SOEXT) $(TCL_BASE)/bin/tk86.$(SOEXT) 8 | TCLTK_LIBS = $(TCLTK_LIBDIR) \ 9 | $(LIBFLAG)tcl86$(LIBLINKEXT) $(LIBFLAG)tk86$(LIBLINKEXT) \ 10 | $(LIBFLAG)user32$(LIBLINKEXT) $(LIBFLAG)advapi32$(LIBLINKEXT) \ 11 | $(LIBFLAG)gdi32$(LIBLINKEXT) $(LIBFLAG)comdlg32$(LIBLINKEXT) \ 12 | $(LIBFLAG)imm32$(LIBLINKEXT) $(LIBFLAG)comctl32$(LIBLINKEXT) \ 13 | $(LIBFLAG)shell32$(LIBLINKEXT) $(LIBFLAG)Shlwapi$(LIBLINKEXT) 14 | # Shlwapi was added to make mingw32 compile happy 15 | TCLTK_LIBS +=$(LIBFLAG)Shlwapi$(LIBLINKEXT) 16 | TKCXIMAGE_BASE = $(OPEN_SOFTWARE_BINARIES_TOPLEVEL)/tkcximage-0.98.9/tcltk-8.6.4 17 | TKCXIMAGE_DLL = $(TKCXIMAGE_BASE)/bin/Tkcximage.$(SOEXT) 18 | TCLTK_SO_PATH = $(TCL_BASE)/bin 19 | TCL_LIBRARY = $(TCL_BASE)/lib/tcl8.6 20 | TK_LIBRARY = $(TCL_BASE)/lib/tk8.6 21 | TCLSH = $(TCL_BASE)/bin/tclsh86.exe 22 | endif 23 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/tcltk-8.6.4.x64_linux.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_linux) 2 | BUILDFLAGS += -D__NON_STD_TCL_INSTALL 3 | TCL_BASE = $(OPEN_SOFTWARE_BINARIES_TOPLEVEL)/tcltk-8.6.4 4 | TK_BASE = $(OPEN_SOFTWARE_BINARIES_TOPLEVEL)/tcltk-8.6.4 5 | TCLTK_INCDIR = -I$(TCL_BASE)/include -I$(TK_BASE)/include 6 | TCLTK_LIBDIR = -L$(TCL_BASE)/lib -L$(TK_BASE)/lib 7 | TCLTK_DLLS = $(TCL_BASE)/bin/tcl8.6.$(SOEXT) $(TCL_BASE)/bin/tk8.6.$(SOEXT) 8 | TCLTK_LIBS = $(TCLTK_LIBDIR) -ltcl8.6 -ltk8.6 9 | TKCXIMAGE_BASE = $(OPEN_SOFTWARE_BINARIES_TOPLEVEL)/tkcximage-0.98.9/tcltk-8.6.4 10 | TKCXIMAGE_DLL = $(TKCXIMAGE_BASE)/bin/Tkcximage.$(SOEXT) 11 | TCLTK_SO_PATH = $(TCL_BASE)/lib 12 | TCL_LIBRARY = $(TCL_BASE)/lib/tcl8.6 13 | TK_LIBRARY = $(TCL_BASE)/lib/tk8.6 14 | TCLSH = $(TCL_BASE)/bin/tclsh8.6 15 | endif 16 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/tcltk-8.6.4.x64_macosx.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_macosx) 2 | BUILDFLAGS += -D__NON_STD_TCL_INSTALL 3 | TCL_BASE = $(OPEN_SOFTWARE_BINARIES_TOPLEVEL)/tcltk-8.6.4 4 | TK_BASE = $(OPEN_SOFTWARE_BINARIES_TOPLEVEL)/tcltk-8.6.4 5 | TCLTK_INCDIR = -I$(TCL_BASE)/include -I$(TK_BASE)/include 6 | TCLTK_LIBDIR = -L$(TCL_BASE)/lib -L$(TK_BASE)/lib 7 | TCLTK_DLLS = $(TCL_BASE)/bin/tcl8.6.$(SOEXT) $(TCL_BASE)/bin/tk8.6.$(SOEXT) 8 | TCLTK_LIBS = $(TCLTK_LIBDIR) -ltcl8.6 -ltk8.6 9 | TKCXIMAGE_BASE = $(OPEN_SOFTWARE_BINARIES_TOPLEVEL)/tkcximage-0.98.9/tcltk-8.6.4 10 | TKCXIMAGE_DLL = $(TKCXIMAGE_BASE)/bin/Tkcximage.$(SOEXT) 11 | TCLTK_SO_PATH = $(TCL_BASE)/lib 12 | TCL_LIBRARY = $(TCL_BASE)/lib/tcl8.6 13 | TK_LIBRARY = $(TCL_BASE)/lib/tk8.6 14 | TCLSH = $(TCL_BASE)/bin/tclsh8.6 15 | endif 16 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2017.01/wix-3.14.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | # Copyright (c) Stanford University, The Regents of the University of 2 | # California, and others. 3 | # 4 | # All Rights Reserved. 5 | # 6 | # See Copyright-SimVascular.txt for additional details. 7 | # 8 | # Permission is hereby granted, free of charge, to any person obtaining 9 | # a copy of this software and associated documentation files (the 10 | # "Software"), to deal in the Software without restriction, including 11 | # without limitation the rights to use, copy, modify, merge, publish, 12 | # distribute, sublicense, and/or sell copies of the Software, and to 13 | # permit persons to whom the Software is furnished to do so, subject 14 | # to the following conditions: 15 | # 16 | # The above copyright notice and this permission notice shall be included 17 | # in all copies or substantial portions of the Software. 18 | # 19 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 20 | # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21 | # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 22 | # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 23 | # OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 24 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 25 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 26 | # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 27 | # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 28 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 29 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | WIXUI_PATH := /cygdrive/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.14/bin 32 | WIXUI_WIN_PATH := C:/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.14/bin 33 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2019.06/leslib-1.5.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_cygwin) 2 | LESLIB_DEFS = -DACUSIM_NT -DACUSIM_WIN -DACUSIM_WIN64 3 | LESLIB_INCDIR = -I $(LESLIB_TOP) 4 | LESLIB_TOP = $(LICENSED_SOFTWARE_TOPLEVEL)/leslib-1.5/win/x64 5 | LESLIB_LIBS = $(LIBPATH_COMPILER_FLAG)$(LESLIB_TOP) $(LIBFLAG)libles.lib 6 | LESLIB_LIBS += $(LIBFLAG)Advapi32.lib $(LIBFLAG)Ws2_32.lib 7 | endif 8 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2019.06/leslib-1.5.x64_linux.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_linux) 2 | LESLIB_DEFS = -DACUSIM_LINUX 3 | LESLIB_TOP = $(LICENSED_SOFTWARE_TOPLEVEL)/leslib-1.5/x64_linux 4 | LESLIB_INCDIR = -I $(LESLIB_TOP) 5 | LESLIB_LIBS = -L$(LESLIB_TOP) -lles 6 | #LESLIB_LIBS = -L$(LESLIB_TOP)/shared -lles -llapack 7 | endif 8 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2019.06/mpich.x64_linux.mk: -------------------------------------------------------------------------------- 1 | MPI_NAME = mpich 2 | MPI_INCDIR = $(wordlist 2,99,$(shell mpif90 -link_info)) 3 | MPI_LIBS = $(wordlist 2,99,$(shell mpicxx -link_info)) $(wordlist 2,99,$(shell mpif90 -link_info)) 4 | MPI_SO_PATH = 5 | MPIEXEC_PATH = 6 | MPIEXEC = mpiexec 7 | 8 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2019.06/mpich.x64_macosx.mk: -------------------------------------------------------------------------------- 1 | MPI_NAME = mpich 2 | MPI_INCDIR = $(wordlist 2,99,$(shell /opt/local/bin/mpif90-mpich-devel-clang -link_info)) 3 | MPI_LIBS = $(wordlist 2,99,$(shell /opt/local/bin/mpicxx-mpich-devel-clang -link_info)) $(wordlist 2,99,$(shell /opt/local/bin/mpif90-mpich-devel-clang -link_info)) 4 | MPI_SO_PATH = 5 | MPIEXEC_PATH = 6 | MPIEXEC = /opt/local/bin/mpiexec-mpich-devel-clang 7 | 8 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2019.06/mpich2-1.4p1.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_cygwin) 2 | MPI_NAME = mpich 3 | MPI_TOP = $(OPEN_SOFTWARE_BINARIES_TOPLEVEL)/../../unknown/x64/mpich2-1.4p1 4 | MPI_INCDIR = -I $(MPI_TOP)/include 5 | MPI_LIBS = $(LIBPATH_COMPILER_FLAG)$(MPI_TOP)/lib $(LIBFLAG)mpi.lib $(LIBFLAG)fmpich2.lib 6 | MPI_SO_PATH = $(MPI_TOP)/lib 7 | MPIEXEC_PATH = $(MPI_TOP)/bin 8 | MPIEXEC = mpiexec.exe 9 | endif 10 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2019.06/msmpi.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | ifeq ($(CLUSTER), x64_cygwin) 2 | MPI_NAME = msmpi 3 | #MPI_TOP = C:/Program\ Files\ \(x86\)/Microsoft\ SDKs/MPI 4 | #MPI_INCDIR = -I$(MPI_TOP)/Include -I$(MPI_TOP)/Include/x64 5 | 6 | MPI_TOP = $(TOP)/../Code/ThirdParty/msmpi 7 | MPI_INCDIR = -I$(MPI_TOP)/Include -I$(MPI_TOP)/Include/x64 8 | MPI_LIBS = $(LIBPATH_COMPILER_FLAG)$(MPI_TOP)/Lib/x64 $(LIBFLAG)msmpifmc$(LIBLINKEXT) $(LIBFLAG)msmpi$(LIBLINKEXT) 9 | 10 | MPI_SO_PATH = 11 | MPIEXEC_PATH = 12 | MPIEXEC = 13 | endif 14 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2019.06/openmpi.x64_linux.mk: -------------------------------------------------------------------------------- 1 | MPI_NAME = openmpi 2 | MPI_INCDIR = $(shell mpif90 --showme:compile) 3 | MPI_LIBS = $(shell mpicxx --showme:link) $(shell mpif90 --showme:link) 4 | MPI_SO_PATH = $(shell which mpiexec)/../.. 5 | MPIEXEC_PATH = $(dir $(shell which mpiexec)) 6 | MPIEXEC = mpiexec 7 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2019.06/openmpi.x64_macosx.mk: -------------------------------------------------------------------------------- 1 | MPI_NAME = openmpi 2 | MPI_INCDIR = $(shell mpif90 --showme:compile) 3 | MPI_LIBS = $(shell mpicxx --showme:link) $(shell mpif90 --showme:link) 4 | MPI_SO_PATH = $(shell which mpiexec)/../.. 5 | MPIEXEC_PATH = $(dir $(shell which mpiexec)) 6 | MPIEXEC = mpiexec 7 | -------------------------------------------------------------------------------- /BuildWithMake/MakeHelpers/2019.06/wix-3.14.x64_cygwin.mk: -------------------------------------------------------------------------------- 1 | # Copyright (c) Stanford University, The Regents of the University of 2 | # California, and others. 3 | # 4 | # All Rights Reserved. 5 | # 6 | # See Copyright-SimVascular.txt for additional details. 7 | # 8 | # Permission is hereby granted, free of charge, to any person obtaining 9 | # a copy of this software and associated documentation files (the 10 | # "Software"), to deal in the Software without restriction, including 11 | # without limitation the rights to use, copy, modify, merge, publish, 12 | # distribute, sublicense, and/or sell copies of the Software, and to 13 | # permit persons to whom the Software is furnished to do so, subject 14 | # to the following conditions: 15 | # 16 | # The above copyright notice and this permission notice shall be included 17 | # in all copies or substantial portions of the Software. 18 | # 19 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 20 | # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21 | # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 22 | # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 23 | # OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 24 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 25 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 26 | # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 27 | # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 28 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 29 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | 31 | WIXUI_PATH := /cygdrive/c/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.14/bin 32 | WIXUI_WIN_PATH := C:/Program\ Files\ \(x86\)/WiX\ Toolset\ v3.14/bin 33 | -------------------------------------------------------------------------------- /BuildWithMake/Release/developer_wrapper_scripts/developer-core-script: -------------------------------------------------------------------------------- 1 | #!/bin/bash -f 2 | 3 | # simvascular specific additions 4 | 5 | export SV_OS=REPLACEME_SV_OS 6 | export SOFTWARE_PLATFORM=REPLACEME_SOFTWARE_PLATFORM 7 | export CXX_COMPILER_VERSION=REPLACEME_CXX_COMPILER_VERSION 8 | export FORTRAN_COMPILER_VERSION=REPLACEME_FORTRAN_COMPILER_VERSION 9 | export LIB_BUILD_DIR=REPLACEME_LIB_BUILD_DIR 10 | export SV_VERSION=REPLACEME_SV_VERSION 11 | 12 | # must specify paths in unix style 13 | export OPEN_SOFTWARE_BINARIES_TOPLEVEL=REPLACEME_OPEN_SOFTWARE_BINARIES_TOPLEVEL 14 | export LICENSED_SOFTWARE_TOPLEVEL=REPLACEME_LICENSED_SOFTWARE_TOPLEVEL 15 | export SV_HOME=REPLACEME_SV_HOME 16 | 17 | #export SV_STATIC_BUILD=REPLACEME_SV_STATIC_BUILD 18 | 19 | ################################################################ 20 | # YOU PROBABLY DON'T NEED TO CHANGE ANYTHING BELOW THIS LINE. # 21 | ################################################################ 22 | 23 | # simvascular addition 24 | export LD_LIBRARY_PATH=$SV_HOME/BuildWithMake/Lib/$LIB_BUILD_DIR:$LD_LIBRARY_PATH 25 | 26 | # vtk additions 27 | case "$SV_OS" in 28 | "windows" ) 29 | export LD_LIBRARY_PATH=REPLACEME_VTK_SO_PATH:$LD_LIBRARY_PATH 30 | # leave VTK_RENDERER blank for win32 31 | ;; 32 | "linux" ) 33 | export LD_LIBRARY_PATH=REPLACEME_VTK_SO_PATH:$LD_LIBRARY_PATH 34 | export VTK_RENDERER=OpenGL 35 | ;; 36 | * ) 37 | export LD_LIBRARY_PATH=REPLACEME_VTK_SO_PATH:$LD_LIBRARY_PATH 38 | ;; 39 | esac 40 | 41 | # MPICH2 additions 42 | export LD_LIBRARY_PATH=REPLACEME_MPICH_SO_PATH:$LD_LIBRARY_PATH 43 | 44 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:REPLACEME_INTEL_COMPILER_SO_PATH 45 | 46 | # needed for macosx 47 | export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH 48 | 49 | # need to convert to dos style paths on windows 50 | case "$SV_OS" in 51 | "windows" ) 52 | export OPEN_SOFTWARE_BINARIES_TOPLEVEL=`cygpath --windows -t mixed $OPEN_SOFTWARE_BINARIES_TOPLEVEL` 53 | export SV_HOME=`cygpath --windows -t mixed $SV_HOME` 54 | export PATH=$LD_LIBRARY_PATH:$PATH 55 | ;; 56 | esac 57 | -------------------------------------------------------------------------------- /BuildWithMake/Release/developer_wrapper_scripts/developer-svpost-script: -------------------------------------------------------------------------------- 1 | 2 | # run the executable 3 | case "$*" in 4 | "") 5 | $SV_HOME/BuildWithMake/Bin/svpost.exe 6 | ;; 7 | *) 8 | $SV_HOME/BuildWithMake/Bin/svpost.exe $* 9 | ;; 10 | esac 11 | 12 | -------------------------------------------------------------------------------- /BuildWithMake/Release/developer_wrapper_scripts/developer-svpre-script: -------------------------------------------------------------------------------- 1 | 2 | # run the executable 3 | case "$*" in 4 | "") 5 | $SV_HOME/BuildWithMake/Bin/svpre.exe 6 | ;; 7 | *) 8 | $SV_HOME/BuildWithMake/Bin/svpre.exe $* 9 | ;; 10 | esac 11 | 12 | -------------------------------------------------------------------------------- /BuildWithMake/Release/developer_wrapper_scripts/developer-svsolver-mpi-linux-script: -------------------------------------------------------------------------------- 1 | #!/bin/bash -f 2 | 3 | # NOTE: in the past, needed to use tcsh to set unlimited 4 | # stack size. Using tcsh seems to die when using 5 | # ubuntu and mpich2 6 | # 7 | #/bin/tcsh -f 8 | # limit stacksize unlimited 9 | 10 | # simvascular specific additions 11 | 12 | export SOFTWARE_PLATFORM=REPLACEME_SOFTWARE_PLATFORM 13 | export COMPILER_VERSION=REPLACEME_COMPILER_VERSION 14 | export OPEN_SOFTWARE_BINARIES_TOPLEVEL=REPLACEME_OPEN_SOFTWARE_BINARIES_TOPLEVEL 15 | export LICENSED_SOFTWARE_TOPLEVEL=REPLACEME_LICENSED_SOFTWARE_TOPLEVEL 16 | export SV_HOME=REPLACEME_SV_HOME 17 | export LES_LICENSE_SERVER=REPLACEME_LES_LICENSE_SERVER 18 | 19 | ############################################################ 20 | # YOU SHOULDN'T NEED TO CHANGE ANYTHING BELOW THIS LINE!! # 21 | ############################################################ 22 | 23 | # 3-D solver environment variables 24 | export FLOWSOLVER_CONFIG=$SV_HOME/Code/FlowSolvers/ThreeDSolver/svSolver 25 | 26 | # simvascular addition 27 | export LD_LIBRARY_PATH=$SV_HOME/Code/Lib:$LD_LIBRARY_PATH 28 | 29 | # MPICH2 additions 30 | export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH 31 | 32 | # intel compiler additions 33 | export LD_LIBRARY_PATH=$OPEN_SOFTWARE_BINARIES_TOPLEVEL/intel_compiler_libs/intel64:$LD_LIBRARY_PATH 34 | 35 | $SV_HOME/BuildWithMake/Bin/svsolver-REPLACE_MPI_NAME.exe $* 36 | -------------------------------------------------------------------------------- /BuildWithMake/Release/developer_wrapper_scripts/developer-svsolver-mpi-macosx-script: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/bash -f 3 | 4 | # NOTE: in the past, needed to use tcsh to set unlimited 5 | # stack size. Using tcsh seems to die when using 6 | # ubuntu and mpich2 7 | # 8 | #/bin/tcsh -f 9 | # limit stacksize unlimited 10 | 11 | # simvascular specific additions 12 | 13 | export SOFTWARE_PLATFORM=REPLACEME_SOFTWARE_PLATFORM 14 | export COMPILER_VERSION=REPLACEME_COMPILER_VERSION 15 | export OPEN_SOFTWARE_BINARIES_TOPLEVEL=REPLACEME_OPEN_SOFTWARE_BINARIES_TOPLEVEL 16 | export LICENSED_SOFTWARE_TOPLEVEL=REPLACEME_LICENSED_SOFTWARE_TOPLEVEL 17 | export SV_HOME=REPLACEME_SV_HOME 18 | export LES_LICENSE_SERVER=REPLACEME_LES_LICENSE_SERVER 19 | 20 | ############################################################ 21 | # YOU SHOULDN'T NEED TO CHANGE ANYTHING BELOW THIS LINE!! # 22 | ############################################################ 23 | 24 | # 3-D solver environment variables 25 | export FLOWSOLVER_CONFIG=$SV_HOME/Code/FlowSolvers/ThreeDSolver/svSolver 26 | 27 | # simvascular addition 28 | export LD_LIBRARY_PATH=$SV_HOME/Code/Lib:$LD_LIBRARY_PATH 29 | 30 | # MPICH2 additions 31 | export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH 32 | 33 | # intel compiler additions 34 | export LD_LIBRARY_PATH=$OPEN_SOFTWARE_BINARIES_TOPLEVEL/intel_compiler_libs/intel64:$LD_LIBRARY_PATH 35 | 36 | $SV_HOME/BuildWithMake/Bin/svsolver-REPLACE_MPI_NAME.exe $* 37 | -------------------------------------------------------------------------------- /BuildWithMake/Release/developer_wrapper_scripts/developer-svsolver-mpi-windows-script: -------------------------------------------------------------------------------- 1 | #!/bin/bash -f 2 | 3 | # simvascular specific additions 4 | 5 | export SOFTWARE_PLATFORM=REPLACEME_SOFTWARE_PLATFORM 6 | export COMPILER_VERSION=REPLACEME_COMPILER_VERSION 7 | export SV_OS=REPLACEME_SV_OS 8 | 9 | # must specify paths in unix style 10 | export OPEN_SOFTWARE_BINARIES_TOPLEVEL=REPLACEME_OPEN_SOFTWARE_BINARIES_TOPLEVEL 11 | export LICENSED_SOFTWARE_TOPLEVEL=REPLACEME_LICENSED_SOFTWARE_TOPLEVEL 12 | export SV_HOME=REPLACEME_SV_HOME 13 | 14 | # MeshSim license file 15 | export SIM_LICENSE_FILE=REPLACEME_LICENSE_FILE 16 | export SIM_LICENSE_FILE=$SV_HOME/Licenses/MeshSim/license.dat 17 | 18 | # 3-D solver environment variables 19 | export FLOWSOLVER_CONFIG=$SV_HOME/Code/FlowSolvers/ThreeDSolver/svSolver 20 | export LES_LICENSE_SERVER=$SV_HOME/Licenses/LesLib/license.dat 21 | #export LES_LICENSE_SERVER=foo.bar.edu 22 | 23 | ################################################################ 24 | # YOU PROBABLY DON'T NEED TO CHANGE ANYTHING BELOW THIS LINE. # 25 | # # 26 | # NOTE: This file needs to be kept current with changes in # 27 | # paths found in include.mk # 28 | # # 29 | ################################################################ 30 | 31 | # simvascular addition 32 | export LD_LIBRARY_PATH=$SV_HOME/Code/Lib:$LD_LIBRARY_PATH 33 | 34 | # need to convert to dos style paths on windows 35 | case "$SV_OS" in 36 | "windows" ) 37 | export SV_HOME=`cygpath --windows -t mixed $SV_HOME` 38 | export OPEN_SOFTWARE_BINARIES_TOPLEVEL=`cygpath --windows -t mixed $OPEN_SOFTWARE_BINARIES_TOPLEVEL` 39 | export LICENSED_SOFTWARE_TOPLEVEL=`cygpath --windows -t mixed $OPEN_SOFTWARE_BINARIES_TOPLEVEL` 40 | export FLOWSOLVER_CONFIG=`cygpath --windows -t mixed $FLOWSOLVER_CONFIG` 41 | export LES_LICENSE_SERVER=`cygpath --windows -t mixed $LES_LICENSE_SERVER` 42 | export PATH=$LD_LIBRARY_PATH:$PATH 43 | ;; 44 | esac 45 | 46 | # run the executable 47 | /cygdrive/c/Program\ Files/Microsoft\ MPI/Bin/mpiexec.exe -np $1 -env FLOWSOLVER_CONFIG $FLOWSOLVER_CONFIG $SV_HOME/BuildWithMake/Bin/svsolver-mpi.exe $2 $3 $4 48 | -------------------------------------------------------------------------------- /BuildWithMake/Release/developer_wrapper_scripts/developer-svsolver-nompi-linux-script: -------------------------------------------------------------------------------- 1 | #!/bin/bash -f 2 | 3 | # NOTE: in the past, needed to use tcsh to set unlimited 4 | # stack size. Using tcsh seems to die when using 5 | # ubuntu and mpich2 6 | # 7 | #/bin/tcsh -f 8 | # limit stacksize unlimited 9 | 10 | # simvascular specific additions 11 | 12 | export SOFTWARE_PLATFORM=REPLACEME_SOFTWARE_PLATFORM 13 | export COMPILER_VERSION=REPLACEME_COMPILER_VERSION 14 | export OPEN_SOFTWARE_BINARIES_TOPLEVEL=REPLACEME_OPEN_SOFTWARE_BINARIES_TOPLEVEL 15 | export LICENSED_SOFTWARE_TOPLEVEL=REPLACEME_LICENSED_SOFTWARE_TOPLEVEL 16 | export SV_HOME=REPLACEME_SV_HOME 17 | export LES_LICENSE_SERVER=REPLACEME_LES_LICENSE_SERVER 18 | 19 | ############################################################ 20 | # YOU SHOULDN'T NEED TO CHANGE ANYTHING BELOW THIS LINE!! # 21 | ############################################################ 22 | 23 | # 3-D solver environment variables 24 | export FLOWSOLVER_CONFIG=$SV_HOME/Code/FlowSolvers/ThreeDSolver/svSolver 25 | 26 | # simvascular addition 27 | export LD_LIBRARY_PATH=$SV_HOME/Code/Lib:$LD_LIBRARY_PATH 28 | 29 | # MPICH2 additions 30 | export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH 31 | 32 | # intel compiler additions 33 | export LD_LIBRARY_PATH=$OPEN_SOFTWARE_BINARIES_TOPLEVEL/intel_compiler_libs/intel64:$LD_LIBRARY_PATH 34 | 35 | $SV_HOME/BuildWithMake/Bin/svsolver-nompi.exe $* 36 | -------------------------------------------------------------------------------- /BuildWithMake/Release/developer_wrapper_scripts/developer-svsolver-nompi-macosx-script: -------------------------------------------------------------------------------- 1 | 2 | #!/bin/bash -f 3 | 4 | # NOTE: in the past, needed to use tcsh to set unlimited 5 | # stack size. Using tcsh seems to die when using 6 | # ubuntu and mpich2 7 | # 8 | #/bin/tcsh -f 9 | # limit stacksize unlimited 10 | 11 | # simvascular specific additions 12 | 13 | export SOFTWARE_PLATFORM=REPLACEME_SOFTWARE_PLATFORM 14 | export COMPILER_VERSION=REPLACEME_COMPILER_VERSION 15 | export OPEN_SOFTWARE_BINARIES_TOPLEVEL=REPLACEME_OPEN_SOFTWARE_BINARIES_TOPLEVEL 16 | export LICENSED_SOFTWARE_TOPLEVEL=REPLACEME_LICENSED_SOFTWARE_TOPLEVEL 17 | export SV_HOME=REPLACEME_SV_HOME 18 | export LES_LICENSE_SERVER=REPLACEME_LES_LICENSE_SERVER 19 | 20 | ############################################################ 21 | # YOU SHOULDN'T NEED TO CHANGE ANYTHING BELOW THIS LINE!! # 22 | ############################################################ 23 | 24 | # 3-D solver environment variables 25 | export FLOWSOLVER_CONFIG=$SV_HOME/Code/FlowSolvers/ThreeDSolver/svSolver 26 | 27 | # simvascular addition 28 | export LD_LIBRARY_PATH=$SV_HOME/Code/Lib:$LD_LIBRARY_PATH 29 | 30 | # MPICH2 additions 31 | export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH 32 | 33 | # intel compiler additions 34 | export LD_LIBRARY_PATH=$OPEN_SOFTWARE_BINARIES_TOPLEVEL/intel_compiler_libs/intel64:$LD_LIBRARY_PATH 35 | 36 | $SV_HOME/BuildWithMake/Bin/svsolver-nompi.exe $* 37 | -------------------------------------------------------------------------------- /BuildWithMake/Release/developer_wrapper_scripts/developer-svsolver-nompi-windows-script: -------------------------------------------------------------------------------- 1 | #!/bin/bash -f 2 | 3 | # simvascular specific additions 4 | 5 | export SOFTWARE_PLATFORM=REPLACEME_SOFTWARE_PLATFORM 6 | export COMPILER_VERSION=REPLACEME_COMPILER_VERSION 7 | export SV_OS=REPLACEME_SV_OS 8 | 9 | # must specify paths in unix style 10 | export OPEN_SOFTWARE_BINARIES_TOPLEVEL=REPLACEME_OPEN_SOFTWARE_BINARIES_TOPLEVEL 11 | export LICENSED_SOFTWARE_TOPLEVEL=REPLACEME_LICENSED_SOFTWARE_TOPLEVEL 12 | export SV_HOME=REPLACEME_SV_HOME 13 | 14 | # MeshSim license file 15 | export SIM_LICENSE_FILE=REPLACEME_LICENSE_FILE 16 | export SIM_LICENSE_FILE=$SV_HOME/Licenses/MeshSim/license.dat 17 | 18 | # 3-D solver environment variables 19 | export FLOWSOLVER_CONFIG=$SV_HOME/Code/FlowSolvers/ThreeDSolver/svSolver 20 | export LES_LICENSE_SERVER=$SV_HOME/Licenses/LesLib/license.dat 21 | #export LES_LICENSE_SERVER=foo.bar.edu 22 | 23 | ################################################################ 24 | # YOU PROBABLY DON'T NEED TO CHANGE ANYTHING BELOW THIS LINE. # 25 | # # 26 | # NOTE: This file needs to be kept current with changes in # 27 | # paths found in include.mk # 28 | # # 29 | ################################################################ 30 | 31 | # simvascular addition 32 | export LD_LIBRARY_PATH=$SV_HOME/Code/Lib:$LD_LIBRARY_PATH 33 | 34 | # need to convert to dos style paths on windows 35 | case "$SV_OS" in 36 | "windows" ) 37 | export SV_HOME=`cygpath --windows -t mixed $SV_HOME` 38 | export OPEN_SOFTWARE_BINARIES_TOPLEVEL=`cygpath --windows -t mixed $OPEN_SOFTWARE_BINARIES_TOPLEVEL` 39 | export LICENSED_SOFTWARE_TOPLEVEL=`cygpath --windows -t mixed $OPEN_SOFTWARE_BINARIES_TOPLEVEL` 40 | export FLOWSOLVER_CONFIG=`cygpath --windows -t mixed $FLOWSOLVER_CONFIG` 41 | export LES_LICENSE_SERVER=`cygpath --windows -t mixed $LES_LICENSE_SERVER` 42 | export PATH=$LD_LIBRARY_PATH:$PATH 43 | ;; 44 | esac 45 | 46 | # run the executable 47 | /cygdrive/c/Program\ Files/Microsoft\ MPI/Bin/mpiexec.exe -np $1 -env FLOWSOLVER_CONFIG $FLOWSOLVER_CONFIG $SV_HOME/BuildWithMake/Bin/svsolver-nompi.exe $2 $3 $4 48 | -------------------------------------------------------------------------------- /BuildWithMake/Release/linux_wrapper_scripts/linux-dist-core-script: -------------------------------------------------------------------------------- 1 | #!/bin/bash -f 2 | 3 | export SV_HOME=/usr/local/package/REPLACE_SV_VERSION/REPLACE_TIMESTAMP 4 | export SV_RELEASE_BUILD=REPLACE_SV_PLATFORM 5 | 6 | ################################################################ 7 | # YOU PROBABLY DON'T NEED TO CHANGE ANYTHING BELOW THIS LINE. # 8 | ################################################################ 9 | 10 | export SV_STATIC_BUILD=1 11 | export SV_RELEASED_MODE=1 12 | 13 | # SV additions (parasolid, tcltk, etc.) 14 | export LD_LIBRARY_PATH=$SV_HOME:$LD_LIBRARY_PATH 15 | 16 | # MPICH2 additions 17 | export LD_LIBRARY_PATH=$SV_HOME/mpi/lib:$LD_LIBRARY_PATH 18 | 19 | -------------------------------------------------------------------------------- /BuildWithMake/Release/linux_wrapper_scripts/linux-dist-svpost-script: -------------------------------------------------------------------------------- 1 | 2 | # run the executable 3 | case "$*" in 4 | "") 5 | $SV_HOME/postsolver-bin.exe 6 | ;; 7 | *) 8 | $SV_HOME/postsolver-bin.exe $* 9 | ;; 10 | esac 11 | 12 | 13 | -------------------------------------------------------------------------------- /BuildWithMake/Release/linux_wrapper_scripts/linux-dist-svpre-script: -------------------------------------------------------------------------------- 1 | 2 | $SV_HOME/presolver-bin.exe $* 3 | 4 | -------------------------------------------------------------------------------- /BuildWithMake/Release/linux_wrapper_scripts/linux-dist-svsolver-mpi-script: -------------------------------------------------------------------------------- 1 | 2 | # on windows, use a file 3 | #export LES_LICENSE_SERVER=$SV_HOME/Licenses/LesLib/license.dat 4 | # on linux, point to a server 5 | #export LES_LICENSE_SERVER=foo.bar.edu 6 | 7 | # config file for solver 8 | export FLOWSOLVER_CONFIG=$SV_HOME 9 | 10 | $SV_HOME/flowsolver-bin.exe $* 11 | -------------------------------------------------------------------------------- /BuildWithMake/Release/linux_wrapper_scripts/linux-dist-svsolver-nompi-script: -------------------------------------------------------------------------------- 1 | 2 | # on windows, use a file 3 | #export LES_LICENSE_SERVER=$SV_HOME/Licenses/LesLib/license.dat 4 | # on linux, point to a server 5 | #export LES_LICENSE_SERVER=foo.bar.edu 6 | 7 | # config file for solver 8 | export FLOWSOLVER_CONFIG=$SV_HOME 9 | 10 | $SV_HOME/flowsolver-bin.exe $* 11 | -------------------------------------------------------------------------------- /BuildWithMake/Release/platform_independent_scripts/generic-launch-script: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # the next line restarts using tclsh \ 3 | exec /usr/bin/tclsh "$0" $0 $* 4 | 5 | set lexec [lindex $argv 0] 6 | set myexec [file tail $lexec] 7 | set allvers [glob -nocomplain [file dirname $lexec]/../package/svsolver/*] 8 | set dirnames {} 9 | foreach i $allvers { 10 | if [file isdirectory $i] { 11 | lappend dirnames [file tail $i] 12 | } 13 | } 14 | if {[llength $dirnames] == 0} { 15 | return -code error "ERROR: installation of simvascular not found!" 16 | } 17 | 18 | set dirnames [lsort -integer $dirnames] 19 | set mostrecent [lindex $dirnames end] 20 | 21 | exec bash -c "[file dirname $lexec]/../package/svsolver/$mostrecent/$myexec [lrange $argv 1 end]" >&@ stdout 22 | 23 | exit 24 | -------------------------------------------------------------------------------- /BuildWithMake/Release/platform_independent_scripts/post-install.sh: -------------------------------------------------------------------------------- 1 | #/bin/sh 2 | rm -f /usr/local/bin/REPLACE_SV_VERSION 3 | rm -f /usr/local/bin/REPLACE_SV_VERSION-cmdline 4 | rm -f /usr/local/bin/adaptorREPLACE_SV_POSTFIX 5 | rm -f /usr/local/bin/tetadaptorREPLACE_SV_POSTFIX 6 | rm -f /usr/local/bin/presolverREPLACE_SV_POSTFIX 7 | rm -f /usr/local/bin/postsolverREPLACE_SV_POSTFIX 8 | rm -f /usr/local/bin/xfsvREPLACE_SV_POSTFIX 9 | cp /usr/local/package/REPLACE_SV_VERSION/REPLACE_TIMESTAMP/generic_launch_script /usr/local/bin/REPLACE_SV_VERSION 10 | cp /usr/local/package/REPLACE_SV_VERSION/REPLACE_TIMESTAMP/generic_launch_script /usr/local/bin/REPLACE_SV_VERSION-cmdline 11 | cp /usr/local/package/REPLACE_SV_VERSION/REPLACE_TIMESTAMP/generic_launch_script /usr/local/bin/adaptorREPLACE_SV_POSTFIX 12 | cp /usr/local/package/REPLACE_SV_VERSION/REPLACE_TIMESTAMP/generic_launch_script /usr/local/bin/tetadaptorREPLACE_SV_POSTFIX 13 | cp /usr/local/package/REPLACE_SV_VERSION/REPLACE_TIMESTAMP/generic_launch_script /usr/local/bin/presolverREPLACE_SV_POSTFIX 14 | cp /usr/local/package/REPLACE_SV_VERSION/REPLACE_TIMESTAMP/generic_launch_script /usr/local/bin/postsolverREPLACE_SV_POSTFIX 15 | cp /usr/local/package/REPLACE_SV_VERSION/REPLACE_TIMESTAMP/generic_launch_script /usr/local/bin/xfsvREPLACE_SV_POSTFIX 16 | chmod a+rx /usr/local/bin/simvascularREPLACE_SV_POSTFIX 17 | chmod a+rx /usr/local/bin/simvascularREPLACE_SV_POSTFIX-cmdline 18 | chmod a+rx /usr/local/bin/adaptorREPLACE_SV_POSTFIX 19 | chmod a+rx /usr/local/bin/tetadaptorREPLACE_SV_POSTFIX 20 | chmod a+rx /usr/local/bin/presolverREPLACE_SV_POSTFIX 21 | chmod a+rx /usr/local/bin/postsolverREPLACE_SV_POSTFIX 22 | chmod a+rx /usr/local/bin/xfsvREPLACE_SV_POSTFIX 23 | 24 | 25 | -------------------------------------------------------------------------------- /BuildWithMake/Release/platform_independent_scripts/post-solver-install.sh: -------------------------------------------------------------------------------- 1 | #/bin/sh 2 | rm -f /usr/local/bin/flowsolverREPLACE_SV_POSTFIX 3 | cp /usr/local/package/REPLACE_SV_VERSION/REPLACE_TIMESTAMP/generic_launch_script /usr/local/bin/flowsolverREPLACE_SV_POSTFIX 4 | chmod a+rx /usr/local/bin/flowsolverREPLACE_SV_POSTFIX 5 | 6 | 7 | -------------------------------------------------------------------------------- /BuildWithMake/Release/platform_independent_scripts/post-svsolver-install.sh: -------------------------------------------------------------------------------- 1 | #/bin/sh 2 | rm -f /usr/local/bin/svsolver-nompi 3 | cp /usr/local/package/REPLACE_SV_VERSION/REPLACE_TIMESTAMP/generic_launch_script /usr/local/bin/svsolver-nompi 4 | chmod a+rx /usr/local/bin/svsolver-nompi 5 | rm -f /usr/local/bin/svsolver-REPLACE_MPI_NAME 6 | cp /usr/local/package/REPLACE_SV_VERSION/REPLACE_TIMESTAMP/generic_launch_script /usr/local/bin/svsolver-REPLACE_MPI_NAME 7 | chmod a+rx /usr/local/bin/svsolver-REPLACE_MPI_NAME 8 | -------------------------------------------------------------------------------- /BuildWithMake/Release/tcl_helper_scripts/create_tclIndex.tcl: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2014-2015 The Regents of the University of California. 3 | # All Rights Reserved. 4 | # 5 | # Portions of the code Copyright (c) 2009-2011 Open Source Medical 6 | # Software Corporation, University of California, San Diego. 7 | # All rights reserved. 8 | # 9 | # Copyright (c) 2007 Stanford University, 10 | # Charles Taylor, Nathan Wilson, Bill Katz. 11 | # 12 | # Permission is hereby granted, free of charge, to any person obtaining 13 | # a copy of this software and associated documentation files (the 14 | # "Software"), to deal in the Software without restriction, including 15 | # without limitation the rights to use, copy, modify, merge, publish, 16 | # distribute, sublicense, and/or sell copies of the Software, and to 17 | # permit persons to whom the Software is furnished to do so, subject 18 | # to the following conditions: 19 | # 20 | # The above copyright notice and this permission notice shall be included 21 | # in all copies or substantial portions of the Software. 22 | # 23 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 24 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 25 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 26 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 27 | # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 28 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 29 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 30 | 31 | proc check_for_dirs {mydir} { 32 | foreach fn [glob -nocomplain [file join $mydir *]] { 33 | puts "$fn" 34 | if [file isdirectory $fn] { 35 | puts "found directory $fn" 36 | if {[llength [glob -nocomplain [file join $fn *.tcl]]] > 0} { 37 | puts "indexing $fn *.tcl" 38 | catch {auto_mkindex $fn *.tcl} 39 | } 40 | check_for_dirs $fn 41 | } 42 | } 43 | puts "Finished check for dirs" 44 | } 45 | 46 | check_for_dirs $argv 47 | -------------------------------------------------------------------------------- /BuildWithMake/Release/tcl_helper_scripts/d2u_files.tcl: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2014-2015 The Regents of the University of California. 3 | # All Rights Reserved. 4 | # 5 | # Portions of the code Copyright (c) 2009-2011 Open Source Medical 6 | # Software Corporation, University of California, San Diego. 7 | # All rights reserved. 8 | # 9 | # Permission is hereby granted, free of charge, to any person obtaining 10 | # a copy of this software and associated documentation files (the 11 | # "Software"), to deal in the Software without restriction, including 12 | # without limitation the rights to use, copy, modify, merge, publish, 13 | # distribute, sublicense, and/or sell copies of the Software, and to 14 | # permit persons to whom the Software is furnished to do so, subject 15 | # to the following conditions: 16 | # 17 | # The above copyright notice and this permission notice shall be included 18 | # in all copies or substantial portions of the Software. 19 | # 20 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 21 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 22 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 23 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 24 | # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 25 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 26 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 27 | # 28 | 29 | foreach fileext {.cxx .c .h .tcl .txt .f Makefile ACKNOWLEDGEMENTS .mk} { 30 | 31 | foreach i [file_find .. *$fileext] { 32 | 33 | if {![file isdirectory $i]} { 34 | 35 | if {[regexp .svn $i]} { 36 | 37 | puts "Skipping svn hidden file ($i)." 38 | 39 | } else { 40 | 41 | file_dos2unix $i $i.tmp 42 | if [catch {exec diff $i $i.tmp} msg] { 43 | puts "File $i has changed after d2u!!" 44 | } 45 | file delete $i 46 | file rename $i.tmp $i 47 | 48 | } 49 | 50 | } else { 51 | 52 | puts "skipping directory $i" 53 | 54 | } 55 | 56 | } 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_installer_packages/MSMpiSetup.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/BuildWithMake/Release/windows_installer_packages/MSMpiSetup.exe -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_installer_packages/msi-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/BuildWithMake/Release/windows_installer_packages/msi-logo.png -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_installer_packages/vcredist_x64-MSVC-2013-update-4.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/BuildWithMake/Release/windows_installer_packages/vcredist_x64-MSVC-2013-update-4.exe -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_installer_packages/w_fcompxe_redist_intel64_2013_sp1.5.239.msi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/BuildWithMake/Release/windows_installer_packages/w_fcompxe_redist_intel64_2013_sp1.5.239.msi -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_installer_packages/ww_ifort_redist_intel64_2018.3.210.msi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/BuildWithMake/Release/windows_installer_packages/ww_ifort_redist_intel64_2018.3.210.msi -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_msi_helpers/msi-banner.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/BuildWithMake/Release/windows_msi_helpers/msi-banner.bmp -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_msi_helpers/msi-banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/BuildWithMake/Release/windows_msi_helpers/msi-banner.jpg -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_msi_helpers/msi-dialog.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/BuildWithMake/Release/windows_msi_helpers/msi-dialog.bmp -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_msi_helpers/msi-dialog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/BuildWithMake/Release/windows_msi_helpers/msi-dialog.jpg -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_msi_helpers/simvascular.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/BuildWithMake/Release/windows_msi_helpers/simvascular.ico -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_msi_helpers/uuidgen.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2014-2015 The Regents of the University of California. 2 | * All Rights Reserved. 3 | * 4 | * Portions of the code Copyright (c) 2009-2011 Open Source Medical 5 | * Software Corporation, University of California, San Diego. 6 | * All rights reserved. 7 | * 8 | * Permission is hereby granted, free of charge, to any person obtaining 9 | * a copy of this software and associated documentation files (the 10 | * "Software"), to deal in the Software without restriction, including 11 | * without limitation the rights to use, copy, modify, merge, publish, 12 | * distribute, sublicense, and/or sell copies of the Software, and to 13 | * permit persons to whom the Software is furnished to do so, subject 14 | * to the following conditions: 15 | * 16 | * The above copyright notice and this permission notice shall be included 17 | * in all copies or substantial portions of the Software. 18 | * 19 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 20 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 22 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 23 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 24 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 25 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | */ 27 | 28 | #define _OLEAUT32_ 29 | 30 | #include 31 | #include 32 | 33 | GUID guid; 34 | WORD* wstrGUID[100]; 35 | char strGUID[100]; 36 | int count, i; 37 | 38 | int main (int argc, char* argv[]) { 39 | if (argc != 2) { 40 | fprintf (stderr, "SYNTAX: UUIDGEN \n"); 41 | return 1; 42 | } 43 | count = atoi (argv[1]); 44 | for (i = 0; i < count; i++) { 45 | CoCreateGuid (&guid); 46 | StringFromCLSID (&guid, wstrGUID); 47 | WideCharToMultiByte (CP_ACP, 0, *wstrGUID, -1, strGUID, MAX_PATH, NULL, NULL); 48 | printf ("%s\n", strGUID); 49 | } 50 | return 0; 51 | } 52 | -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_wrapper_scripts/windows-dist-core-script: -------------------------------------------------------------------------------- 1 | #!/bin/bash -f 2 | 3 | export SV_HOME=/usr/local/package/svsolver/REPLACE_TIMESTAMP 4 | export SV_RELEASE_BUILD=REPLACE_SV_PLATFORM 5 | export SV_OS=REPLACE_SV_OS 6 | 7 | ################################################################ 8 | # YOU PROBABLY DON'T NEED TO CHANGE ANYTHING BELOW THIS LINE. # 9 | ################################################################ 10 | 11 | export SV_STATIC_BUILD=1 12 | export SV_RELEASED_MODE=1 13 | 14 | # SV additions (parasolid, tcltk, etc.) 15 | export LD_LIBRARY_PATH=$SV_HOME:$LD_LIBRARY_PATH 16 | 17 | # MPICH2 additions 18 | export LD_LIBRARY_PATH=$SV_HOME/mpi/lib:$LD_LIBRARY_PATH 19 | 20 | # intel additions 21 | export LD_LIBRARY_PATH=$SV_HOME/intel_compiler_libs:$LD_LIBRARY_PATH 22 | 23 | # need to convert to dos style paths on windows 24 | case "$SV_OS" in 25 | "windows" ) 26 | export SV_HOME=`cygpath --windows -t mixed "$SV_HOME"` 27 | export PATH=$LD_LIBRARY_PATH:$PATH 28 | ;; 29 | esac 30 | -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_wrapper_scripts/windows-dist-svpost-script: -------------------------------------------------------------------------------- 1 | 2 | # run the executable 3 | case "$*" in 4 | "") 5 | "$SV_HOME/svpost-bin.exe" 6 | ;; 7 | *) 8 | "$SV_HOME/svpost-bin.exe" $* 9 | ;; 10 | esac 11 | -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_wrapper_scripts/windows-dist-svpre-script: -------------------------------------------------------------------------------- 1 | 2 | $SV_HOME/svpre-bin.exe $* 3 | 4 | -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_wrapper_scripts/windows-dist-svsolver-mpi-script: -------------------------------------------------------------------------------- 1 | 2 | # 3-D solver environment variables 3 | export FLOWSOLVER_CONFIG=$SV_HOME 4 | 5 | #export LES_LICENSE_SERVER=$SV_HOME/license.dat 6 | 7 | $SV_HOME/mpiexec.exe -noprompt -user 1 -localroot -localonly -env FLOWSOLVER_CONFIG $FLOWSOLVER_CONFIG -n $1 $SV_HOME/svsolver-REPLACE_MPI_NAME-bin.exe $2 $3 8 | -------------------------------------------------------------------------------- /BuildWithMake/Release/windows_wrapper_scripts/windows-dist-svsolver-nompi-script: -------------------------------------------------------------------------------- 1 | 2 | # 3-D solver environment variables 3 | export FLOWSOLVER_CONFIG=$SV_HOME 4 | 5 | #export LES_LICENSE_SERVER=$SV_HOME/license.dat 6 | 7 | $SV_HOME/mpiexec.exe -noprompt -user 1 -localroot -localonly -env FLOWSOLVER_CONFIG $FLOWSOLVER_CONFIG -n $1 $SV_HOME/svsolver-nompi-bin.exe $2 $3 8 | -------------------------------------------------------------------------------- /Code/CMake/FindLESLIB.cmake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2014-2015 The Regents of the University of California. 2 | # All Rights Reserved. 3 | # 4 | # Permission is hereby granted, free of charge, to any person obtaining 5 | # a copy of this software and associated documentation files (the 6 | # "Software"), to deal in the Software without restriction, including 7 | # without limitation the rights to use, copy, modify, merge, publish, 8 | # distribute, sublicense, and/or sell copies of the Software, and to 9 | # permit persons to whom the Software is furnished to do so, subject 10 | # to the following conditions: 11 | # 12 | # The above copyright notice and this permission notice shall be included 13 | # in all copies or substantial portions of the Software. 14 | # 15 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 16 | # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 17 | # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 18 | # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 19 | # OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 21 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 22 | # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 23 | # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 24 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 25 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | 27 | 28 | # - Find leslib Libraries 29 | # This function provides the barebones for find leslib. 30 | # It creates the variables required so the user can set them 31 | # === Variables === 32 | # 33 | # LESLIB_LIBRARY, library search path 34 | # LESLIB_INCLUDE_DIR, include search path 35 | # LESLIB_FOUND, set if leslib was found 36 | 37 | set(proj LESLIB) 38 | include(FindPackageHandleStandardArgs) 39 | include(GetPrerequisites) 40 | 41 | find_library(${proj}_LIBRARY leslib libles) 42 | find_path(${proj}_INCLUDE_DIR les.h) 43 | 44 | #----------------------------------------------------------------------------- 45 | # Handle Standard Args 46 | find_package_handle_standard_args(${proj} DEFAULT_MSG 47 | ${proj}_LIBRARY 48 | ${proj}_INCLUDE_DIR) -------------------------------------------------------------------------------- /Code/CMake/SVLSConfig.cmake: -------------------------------------------------------------------------------- 1 | 2 | 3 | set(SVLS_DEFINITIONS "") 4 | set(SVLS_NEEDED_LIBS svLS) 5 | 6 | if(WIN32 OR (CYGWIN AND NOT IS64)) 7 | #no svls for x32 8 | endif() 9 | 10 | if(LINUX AND IS64) 11 | #no SVLS for linux 12 | endif() 13 | 14 | if(IS64 AND (WIN32 OR CYGWIN)) 15 | unset(SVLS_INCLUDE_DIR) 16 | set(SVLS_PATH_PREFIX "svls-2013.08.10/win/x64") 17 | set(SVLS_FULL_PATH "${LicensedLibs_Bin_Directory}${SVLS_PATH_PREFIX}") 18 | set(SVLS_LIB_DIR "${SVLS_FULL_PATH}" CACHE TYPE PATH) 19 | set(SVLS_POSSIBLE_INCLUDE_DIR "${SVLS_FULL_PATH}" CACHE TYPE PATH) 20 | endif() 21 | 22 | find_path(SVLS_INCLUDE_DIR svLS.h HINTS ${SVLS_POSSIBLE_INCLUDE_DIR}) 23 | 24 | GENLIBS(SVLS_LIBRARY "${SVLS_NEEDED_LIBS}" "SVLS" "${SVLS_LIB_DIR}") 25 | set(SVLS_LIBRARY ${SVLS_svLS_LIBRARY}) 26 | 27 | include_directories(${SVLS_INCLUDE_DIR}) 28 | link_directories(${SVLS_LIB_DIR}) 29 | add_definitions(${SVLS_DEFINITIONS}) 30 | 31 | 32 | -------------------------------------------------------------------------------- /Code/CMake/SimVascularInternals.cmake: -------------------------------------------------------------------------------- 1 | set(SV_LIBS 2 | DUMMY_MPI 3 | DUMMY_FORTRAN_MPI 4 | THIRDPARTY_METIS 5 | THIRDPARTY_NSPCG 6 | THIRDPARTY_SPARSE 7 | THIRDPARTY_TETGEN 8 | THIRDPARTY_VMTK 9 | THIRDPARTY_ZLIB 10 | THREEDSOLVER_DUMMY_LESLIB 11 | THREEDSOLVER_FORTRAN 12 | THREEDSOLVER_WRITE_RESTART 13 | THREEDSOLVER_VTK 14 | POSTSOLVER 15 | PRESOLVER 16 | SVLS 17 | SOLVERIO) 18 | 19 | foreach(lib ${SV_LIBS}) 20 | string(TOLOWER "_SIMVASCULAR_${lib}" SV_LIB_${lib}_NAME) 21 | endforeach() 22 | -------------------------------------------------------------------------------- /Code/CMake/SimVascularThirdParty.cmake: -------------------------------------------------------------------------------- 1 | #----------------------------------------------------------------------------- 2 | # ZLIB 3 | if(SV_USE_ZLIB) 4 | set(USE_ZLIB ON) 5 | simvascular_third_party(zlib) 6 | if(NOT SV_USE_SYSTEM_ZLIB) 7 | set(ZLIB_LIBRARY ${SV_LIB_THIRDPARTY_ZLIB_NAME}) 8 | else() 9 | find_package(ZLIB) 10 | endif() 11 | else() 12 | unset(ZLIB_LIBRARY CACHE) 13 | endif() 14 | 15 | #----------------------------------------------------------------------------- 16 | # SPARSE 17 | if(SV_USE_SPARSE) 18 | set(USE_SPARSE ON) 19 | simvascular_third_party(sparse) 20 | if(NOT SV_USE_SYSTEM_SPARSE) 21 | set(SPARSE_LIBRARY ${SV_LIB_THIRDPARTY_SPARSE_NAME}) 22 | else() 23 | find_package(SPARSE) 24 | endif() 25 | endif() 26 | 27 | #----------------------------------------------------------------------------- 28 | # METIS 29 | if(SV_USE_METIS) 30 | set(USE_METIS ON) 31 | simvascular_third_party(metis) 32 | if(NOT SV_USE_SYSTEM_METIS) 33 | set(METIS_LIBRARY ${SV_LIB_THIRDPARTY_METIS_NAME}) 34 | else() 35 | find_package(METIS) 36 | endif() 37 | endif() 38 | 39 | #----------------------------------------------------------------------------- 40 | # NSPCG 41 | if(SV_USE_NSPCG) 42 | set(USE_NSPCG ON) 43 | simvascular_third_party(nspcg) 44 | if(NOT SV_USE_SYSTEM_NSPCG) 45 | set(NSPCG_LIBRARY ${SV_LIB_THIRDPARTY_NSPCG_NAME}) 46 | else() 47 | find_package(NSPCG) 48 | endif() 49 | endif() 50 | 51 | -------------------------------------------------------------------------------- /Code/FlowSolvers/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ##========================================================================= 2 | # 3 | # Copyright (c) 2014-2015 The Regents of the University of California. 4 | # All Rights Reserved. 5 | # 6 | # Permission is hereby granted, free of charge, to any person obtaining 7 | # a copy of this software and associated documentation files (the 8 | # "Software"), to deal in the Software without restriction, including 9 | # without limitation the rights to use, copy, modify, merge, publish, 10 | # distribute, sublicense, and/or sell copies of the Software, and to 11 | # permit persons to whom the Software is furnished to do so, subject 12 | # to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included 15 | # in all copies or substantial portions of the Software. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 18 | # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19 | # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 20 | # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 21 | # OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 24 | # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 25 | # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | # 29 | #=========================================================================# 30 | set(INDENTS "${INDENTS} ") 31 | message(STATUS "FlowSolvers") 32 | message(STATUS "${INDENTS}ThreeDSolver") 33 | 34 | add_subdirectory(ThreeDSolver) 35 | -------------------------------------------------------------------------------- /Code/FlowSolvers/Include/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | # Set Coronary Flag 2 | if(SV_USE_CORONARY) 3 | set(VER_CORONARY 1) 4 | else() 5 | set(VER_CORONARY 0) 6 | endif() 7 | # Set Closed Loop Flag 8 | if(SV_USE_CLOSEDLOOP) 9 | set(VER_CLOSEDLOOP 1) 10 | else() 11 | set(VER_CLOSEDLOOP 0) 12 | endif() 13 | # Set Variable wall Flag 14 | if(SV_USE_VARWALL) 15 | set(VER_VARWALL 1) 16 | else() 17 | set(VER_VARWALL 0) 18 | endif() 19 | # Set Use VTK Flag 20 | if(SV_USE_VTK) 21 | set(VER_USE_VTK 1) 22 | else() 23 | set(VER_USE_VTK 0) 24 | endif() 25 | 26 | configure_file(simvascular_version.h.in ${CMAKE_CURRENT_BINARY_DIR}/simvascular_version.h) 27 | configure_file(simvascular_options.h.in ${CMAKE_CURRENT_BINARY_DIR}/simvascular_options.h) 28 | 29 | # Write include file 30 | configure_file( 31 | "${CMAKE_CURRENT_SOURCE_DIR}/cvFlowsolverOptions.h.in" 32 | "${CMAKE_CURRENT_BINARY_DIR}/cvFlowsolverOptions.h" 33 | ) 34 | -------------------------------------------------------------------------------- /Code/FlowSolvers/Include/simvascular_version.h.in: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2014-2015 The Regents of the University of California. 2 | * All Rights Reserved. 3 | * 4 | * Permission is hereby granted, free of charge, to any person obtaining 5 | * a copy of this software and associated documentation files (the 6 | * "Software"), to deal in the Software without restriction, including 7 | * without limitation the rights to use, copy, modify, merge, publish, 8 | * distribute, sublicense, and/or sell copies of the Software, and to 9 | * permit persons to whom the Software is furnished to do so, subject 10 | * to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included 13 | * in all copies or substantial portions of the Software. 14 | * 15 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 16 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 17 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 18 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 19 | * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 20 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 21 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 22 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 23 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 24 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 | */ 27 | 28 | /* Standard Version defines */ 29 | #define SV_VERSION "@SV_VERSION@" 30 | #define SV_MAJOR_VERSION "@SV_MAJOR_VERSION@" 31 | #define SV_MINOR_VERSION "@SV_MINOR_VERSION@" 32 | #define SV_PATCH_VERSION "@SV_PATCH_VERSION@" 33 | #define SV_FULL_VERSION "@SV_FULL_VERSION@" 34 | 35 | /* Our Version defines */ 36 | #define SV_MAJOR_VER_NO "@SV_MAJOR_VERSION@" 37 | #define SV_FULL_VER_NO "@SV_MAJOR_VERSION@.@SV_MINOR_VERSION@" 38 | -------------------------------------------------------------------------------- /Code/FlowSolvers/ThreeDSolver/dummyMPI/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(FSRCS mpi_stubs.f) 2 | set(CSRCS mpi_stubs_c.c) 3 | 4 | add_library(${SV_LIB_DUMMY_FORTRAN_MPI_NAME} ${SV_LIBRARY_TYPE} ${FSRCS}) 5 | add_library(${SV_LIB_DUMMY_MPI_NAME} ${SV_LIBRARY_TYPE} ${CSRCS}) 6 | 7 | if(SV_INSTALL_LIBS) 8 | install(TARGETS ${lib} 9 | RUNTIME DESTINATION ${SV_INSTALL_RUNTIME_DIR} COMPONENT CoreExecutables 10 | LIBRARY DESTINATION ${SV_INSTALL_LIBRARY_DIR} COMPONENT CoreLibraries 11 | ARCHIVE DESTINATION ${SV_INSTALL_ARCHIVE_DIR} COMPONENT CoreLibraries 12 | ) 13 | endif() 14 | -------------------------------------------------------------------------------- /Code/FlowSolvers/ThreeDSolver/dummyMPI/mpi_stubs_f77.h: -------------------------------------------------------------------------------- 1 | c 2 | c Dummy parameters for MPI F77 stubs 3 | c 4 | integer MPI_COMM_WORLD 5 | parameter ( MPI_COMM_WORLD = 0 ) 6 | c 7 | c Return values. 8 | c 9 | integer MPI_FAILURE 10 | parameter ( MPI_FAILURE = 1 ) 11 | integer MPI_SUCCESS 12 | parameter ( MPI_SUCCESS = 0 ) 13 | c 14 | c recv message status 15 | c 16 | integer mpi_status_size 17 | parameter ( mpi_status_size = 3 ) 18 | integer mpi_source 19 | parameter ( mpi_source = 1 ) 20 | integer mpi_tag 21 | parameter ( mpi_tag = 2 ) 22 | integer mpi_count 23 | parameter ( mpi_count = 3 ) 24 | c 25 | c recv flags 26 | c 27 | integer mpi_any_source 28 | parameter ( mpi_any_source = -1 ) 29 | integer mpi_any_tag 30 | parameter ( mpi_any_tag = -1 ) 31 | c 32 | c data types and sizes 33 | c 34 | integer mpi_integer 35 | parameter ( mpi_integer = 1 ) 36 | integer mpi_real 37 | parameter ( mpi_real = 2 ) 38 | integer mpi_double_precision 39 | parameter ( mpi_double_precision = 3 ) 40 | integer mpi_logical 41 | parameter ( mpi_logical = 4 ) 42 | integer mpi_character 43 | parameter ( mpi_character = 5 ) 44 | c 45 | c allreduce operations 46 | c 47 | integer mpi_sum 48 | parameter ( mpi_sum = 1 ) 49 | integer mpi_max 50 | parameter ( mpi_max = 2 ) 51 | integer mpi_min 52 | parameter ( mpi_min = 3 ) 53 | integer mpi_product 54 | parameter ( mpi_product = 4 ) 55 | c 56 | c timer 57 | c 58 | double precision mpi_wtime 59 | -------------------------------------------------------------------------------- /Code/FlowSolvers/ThreeDSolver/dummyMPI/mpif.h: -------------------------------------------------------------------------------- 1 | c 2 | c 3 | c 4 | INTEGER MPI_ADDRESS_KIND 5 | PARAMETER (MPI_ADDRESS_KIND=8) 6 | c 7 | c Dummy parameters for MPI F77 stubs 8 | c 9 | integer MPI_COMM_WORLD 10 | parameter ( MPI_COMM_WORLD = 0 ) 11 | c 12 | c Return values. 13 | c 14 | integer MPI_FAILURE 15 | parameter ( MPI_FAILURE = 1 ) 16 | integer MPI_SUCCESS 17 | parameter ( MPI_SUCCESS = 0 ) 18 | c 19 | c recv message status 20 | c 21 | integer mpi_status_size 22 | parameter ( mpi_status_size = 3 ) 23 | integer mpi_source 24 | parameter ( mpi_source = 1 ) 25 | integer mpi_tag 26 | parameter ( mpi_tag = 2 ) 27 | integer mpi_count 28 | parameter ( mpi_count = 3 ) 29 | c 30 | c recv flags 31 | c 32 | integer mpi_any_source 33 | parameter ( mpi_any_source = -1 ) 34 | integer mpi_any_tag 35 | parameter ( mpi_any_tag = -1 ) 36 | c 37 | c data types and sizes 38 | c 39 | integer mpi_integer 40 | parameter ( mpi_integer = 1 ) 41 | integer mpi_real 42 | parameter ( mpi_real = 2 ) 43 | integer mpi_double_precision 44 | parameter ( mpi_double_precision = 3 ) 45 | integer mpi_logical 46 | parameter ( mpi_logical = 4 ) 47 | integer mpi_character 48 | parameter ( mpi_character = 5 ) 49 | c 50 | c allreduce operations 51 | c 52 | integer mpi_sum 53 | parameter ( mpi_sum = 1 ) 54 | integer mpi_max 55 | parameter ( mpi_max = 2 ) 56 | integer mpi_min 57 | parameter ( mpi_min = 3 ) 58 | integer mpi_product 59 | parameter ( mpi_product = 4 ) 60 | c 61 | c timer 62 | c 63 | double precision mpi_wtime 64 | -------------------------------------------------------------------------------- /Code/FlowSolvers/ThreeDSolver/svLS/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(lib ${SV_LIB_SVLS_NAME}${SV_MPI_NAME_EXT}) 2 | 3 | set(FSRCS ADDBCMUL.f 4 | BC.f 5 | #BICGS.f 6 | CGRAD.f 7 | COMMU.f 8 | CPUT.f 9 | DOT.f 10 | GE.f 11 | GMRES.f 12 | INCOMMU.f 13 | LHS.f 14 | LS.f 15 | NORM.f 16 | NSSOLVER.f 17 | #OMPLA.f 18 | PRECOND.f 19 | SOLVE.f 20 | SPARMUL.f) 21 | 22 | 23 | add_library(${lib} ${SV_LIBRARY_TYPE} ${FSRCS}) 24 | 25 | if(SV_USE_DUMMY_MPI) 26 | target_link_libraries(${lib} ${SV_LIB_DUMMY_FORTRAN_MPI_NAME}) 27 | else() 28 | target_link_libraries(${lib} ${MPI_LIBRARY} ${MPI_Fortran_LIBRARIES}) 29 | endif() 30 | 31 | if(SV_INSTALL_LIBS) 32 | install(TARGETS ${lib} 33 | RUNTIME DESTINATION ${SV_INSTALL_RUNTIME_DIR} COMPONENT CoreExecutables 34 | LIBRARY DESTINATION ${SV_INSTALL_LIBRARY_DIR} COMPONENT CoreLibraries 35 | ARCHIVE DESTINATION ${SV_INSTALL_ARCHIVE_DIR} COMPONENT CoreLibraries 36 | ) 37 | endif() 38 | if(SV_INSTALL_HEADERS) 39 | install(FILES ${HDRS} 40 | DESTINATION ${SV_INSTALL_INCLUDE_DIR}/core COMPONENT CoreHeaders 41 | ) 42 | endif() 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Code/FlowSolvers/ThreeDSolver/svLS/svLS.h: -------------------------------------------------------------------------------- 1 | ! This software is Copyright (c) 2012-2015 The Regents of the 2 | ! University of California. All Rights Reserved. 3 | ! 4 | ! Permission to copy and modify this software and its documentation 5 | ! for educational, research and non-profit purposes, without fee, 6 | ! and without a written agreement is hereby granted, provided that 7 | ! the above copyright notice, this paragraph and the following three 8 | ! paragraphs appear in all copies. 9 | ! 10 | ! Permission to make commercial use of this software may be obtained 11 | ! by contacting: 12 | ! Technology Transfer Office 13 | ! 9500 Gilman Drive, Mail Code 0910 14 | ! University of California 15 | ! La Jolla, CA 92093-0910 16 | ! (858) 534-5815 17 | ! invent@ucsd.edu 18 | ! 19 | ! This software program and documentation are copyrighted by The 20 | ! Regents of the University of California. The software program and 21 | ! documentation are supplied "as is", without any accompanying 22 | ! services from The Regents. The Regents does not warrant that the 23 | ! operation of the program will be uninterrupted or error-free. The 24 | ! end-user understands that the program was developed for research 25 | ! purposes and is advised not to rely exclusively on the program for 26 | ! any reason. 27 | ! 28 | ! IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY 29 | ! PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL 30 | ! DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS 31 | ! SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF 32 | ! CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 | ! THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY 34 | ! WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 35 | ! OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE 36 | ! SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE 37 | ! UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE 38 | ! MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 39 | 40 | INCLUDE "svLS_STRUCT.h" 41 | INCLUDE "svLS_API.h" 42 | -------------------------------------------------------------------------------- /Code/FlowSolvers/ThreeDSolver/svPost/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ##========================================================================= 2 | # 3 | # Copyright (c) 2014-2015 The Regents of the University of California. 4 | # All Rights Reserved. 5 | # 6 | # Permission is hereby granted, free of charge, to any person obtaining 7 | # a copy of this software and associated documentation files (the 8 | # "Software"), to deal in the Software without restriction, including 9 | # without limitation the rights to use, copy, modify, merge, publish, 10 | # distribute, sublicense, and/or sell copies of the Software, and to 11 | # permit persons to whom the Software is furnished to do so, subject 12 | # to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included 15 | # in all copies or substantial portions of the Software. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 18 | # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19 | # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 20 | # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 21 | # OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 24 | # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 25 | # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | # 29 | #=========================================================================# 30 | 31 | set(CXXSRCS post_solver.cxx) 32 | 33 | simvascular_add_executable(${SV_POSTSOLVER_EXE} 34 | SRCS ${CXXSRCS} 35 | DEV_SCRIPT_NAME "mypost" 36 | INSTALL_SCRIPT_NAME "svpost" 37 | INSTALL_COMP CoreExecutables 38 | INSTALL_DESTINATION ${SV_INSTALL_RUNTIME_DIR}) 39 | 40 | target_link_libraries(${SV_POSTSOLVER_EXE} 41 | ${GLOBAL_LIBRARIES} ${INTELRUNTIME_LIBRARIES} ${ZLIB_LIBRARY} 42 | ${VTK_LIBRARIES} 43 | ${SV_LIB_SOLVERIO_NAME}) 44 | 45 | 46 | -------------------------------------------------------------------------------- /Code/FlowSolvers/ThreeDSolver/svPre/gmresfortran.h: -------------------------------------------------------------------------------- 1 | /*========================================================================= 2 | * 3 | * Copyright (c) 2014-2015 The Regents of the University of California. 4 | * All Rights Reserved. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject 12 | * to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 18 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 20 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 21 | * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 24 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 25 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | * 29 | *=========================================================================*/ 30 | 31 | #ifndef CV_GMRESFORTRAN_HEADER 32 | #define CV_GMRESFORTRAN_HEADER 33 | 34 | #ifdef SV_WRAP_FORTRAN_IN_CAPS_NO_UNDERSCORE 35 | #define gmresfortran GMRESFORTRAN 36 | #endif 37 | 38 | #ifdef SV_WRAP_FORTRAN_IN_LOWERCASE_WITH_UNDERSCORE 39 | #define gmresfortran gmresfortran_ 40 | #endif 41 | 42 | #ifdef __cplusplus 43 | extern "C" { 44 | #endif 45 | 46 | void gmresfortran(int *nunknown, int *NNZ, int IA[],int JA[],double M[],double F[],double u[]); 47 | 48 | #ifdef __cplusplus 49 | } 50 | #endif 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /Code/FlowSolvers/ThreeDSolver/svSolver/common_blocks/extrat.h: -------------------------------------------------------------------------------- 1 | c Copyright (c) 2014-2015 The Regents of the University of California. 2 | c All Rights Reserved. 3 | c 4 | c Portions of the code Copyright (c) 2009-2011 Open Source Medical 5 | c Software Corporation, University of California, San Diego. 6 | c 7 | c Portions of the code Copyright (c) 2000-2007, Stanford University, 8 | c Rensselaer Polytechnic Institute, Kenneth E. Jansen, 9 | c Charles A. Taylor. 10 | c 11 | c See SimVascular Acknowledgements file for additional 12 | c contributors to the source code. 13 | c 14 | c Redistribution and use in source and binary forms, with or without 15 | c modification, are permitted provided that the following conditions 16 | c are met: 17 | c 18 | c Redistributions of source code must retain the above copyright notice, 19 | c this list of conditions and the following disclaimer. 20 | c Redistributions in binary form must reproduce the above copyright 21 | c notice, this list of conditions and the following disclaimer in the 22 | c documentation and/or other materials provided with the distribution. 23 | c Neither the name of the Stanford University or Rensselaer Polytechnic 24 | c Institute nor the names of its contributors may be used to endorse or 25 | c promote products derived from this software without specific prior 26 | c written permission. 27 | c 28 | c THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 29 | c "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 30 | c LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 31 | c FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 32 | c COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 33 | c INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 34 | c BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 35 | c OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 36 | c AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 37 | c OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 38 | c THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 39 | c DAMAGE. 40 | 41 | c 42 | c \\Common Block variables for "extrat" 43 | REAL*8 ttim(100) 44 | common /extrat/ ttim 45 | -------------------------------------------------------------------------------- /Code/FlowSolvers/ThreeDSolver/svSolver/common_blocks/mbndnod.h: -------------------------------------------------------------------------------- 1 | c Copyright (c) 2014-2015 The Regents of the University of California. 2 | c All Rights Reserved. 3 | c 4 | c Portions of the code Copyright (c) 2009-2011 Open Source Medical 5 | c Software Corporation, University of California, San Diego. 6 | c 7 | c Portions of the code Copyright (c) 2000-2007, Stanford University, 8 | c Rensselaer Polytechnic Institute, Kenneth E. Jansen, 9 | c Charles A. Taylor. 10 | c 11 | c See SimVascular Acknowledgements file for additional 12 | c contributors to the source code. 13 | c 14 | c Redistribution and use in source and binary forms, with or without 15 | c modification, are permitted provided that the following conditions 16 | c are met: 17 | c 18 | c Redistributions of source code must retain the above copyright notice, 19 | c this list of conditions and the following disclaimer. 20 | c Redistributions in binary form must reproduce the above copyright 21 | c notice, this list of conditions and the following disclaimer in the 22 | c documentation and/or other materials provided with the distribution. 23 | c Neither the name of the Stanford University or Rensselaer Polytechnic 24 | c Institute nor the names of its contributors may be used to endorse or 25 | c promote products derived from this software without specific prior 26 | c written permission. 27 | c 28 | c THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 29 | c "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 30 | c LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 31 | c FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 32 | c COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 33 | c INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 34 | c BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 35 | c OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 36 | c AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 37 | c OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 38 | c THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 39 | c DAMAGE. 40 | 41 | c 42 | INTEGER mnodeb(9,8,3) 43 | common /mbndnod/ mnodeb 44 | -------------------------------------------------------------------------------- /Code/FlowSolvers/ThreeDSolver/svSolver/common_blocks/sequence.h: -------------------------------------------------------------------------------- 1 | c Copyright (c) 2014-2015 The Regents of the University of California. 2 | c All Rights Reserved. 3 | c 4 | c Portions of the code Copyright (c) 2009-2011 Open Source Medical 5 | c Software Corporation, University of California, San Diego. 6 | c 7 | c Portions of the code Copyright (c) 2000-2007, Stanford University, 8 | c Rensselaer Polytechnic Institute, Kenneth E. Jansen, 9 | c Charles A. Taylor. 10 | c 11 | c See SimVascular Acknowledgements file for additional 12 | c contributors to the source code. 13 | c 14 | c Redistribution and use in source and binary forms, with or without 15 | c modification, are permitted provided that the following conditions 16 | c are met: 17 | c 18 | c Redistributions of source code must retain the above copyright notice, 19 | c this list of conditions and the following disclaimer. 20 | c Redistributions in binary form must reproduce the above copyright 21 | c notice, this list of conditions and the following disclaimer in the 22 | c documentation and/or other materials provided with the distribution. 23 | c Neither the name of the Stanford University or Rensselaer Polytechnic 24 | c Institute nor the names of its contributors may be used to endorse or 25 | c promote products derived from this software without specific prior 26 | c written permission. 27 | c 28 | c THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 29 | c "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 30 | c LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 31 | c FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 32 | c COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 33 | c INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 34 | c BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 35 | c OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 36 | c AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 37 | c OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 38 | c THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 39 | c DAMAGE. 40 | 41 | c 42 | c 43 | INTEGER seqsize, stepseq(100) 44 | common /sequence/ seqsize, stepseq 45 | -------------------------------------------------------------------------------- /Code/FlowSolvers/ThreeDSolver/svSolver/leslib_code_getsol.c: -------------------------------------------------------------------------------- 1 | /* Copyright (c) 2009-2011 Open Source Medical Software Corporation, 2 | * University of California, San Diego. 3 | * 4 | * All rights reserved. 5 | * 6 | * Portions of the code Copyright (c) 1998-2007 Stanford University, 7 | * Rensselaer Polytechnic Institute, Charles A. Taylor, 8 | * Kenneth E. Jansen. 9 | * 10 | * See SimVascular Acknowledgements file for additional 11 | * contributors to the source code. 12 | * 13 | * Redistribution and use in source and binary forms, with or without 14 | * modification, are permitted provided that the following conditions 15 | * are met: 16 | 17 | * Redistributions of source code must retain the above copyright notice, 18 | * this list of conditions and the following disclaimer. 19 | * Redistributions in binary form must reproduce the above copyright 20 | * notice, this list of conditions and the following disclaimer in the 21 | * documentation and/or other materials provided with the distribution. 22 | * Neither the name of the Stanford University or Rensselaer Polytechnic 23 | * Institute nor the names of its contributors may be used to endorse or 24 | * promote products derived from this software without specific prior 25 | * written permission. 26 | 27 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 28 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 29 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 30 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 31 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 32 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 33 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 34 | * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 35 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 36 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 37 | * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 38 | * DAMAGE. 39 | */ 40 | 41 | #include "leslib_code_usr.h" 42 | void getSol ( UsrHd usrHd, 43 | double* Dy ) 44 | { 45 | 46 | Dy = usrHd->solinc; 47 | 48 | } 49 | -------------------------------------------------------------------------------- /Code/Scripts/README-install: -------------------------------------------------------------------------------- 1 | You may need to install libxss, mpich2, or libgfortran. 2 | If you're on linux these may work: 3 | 4 | sudo apt-get install libxss 5 | sudo apt-get install mpich2 6 | sudo apt-get install gfortran 7 | 8 | -------- 9 | 10 | To use Meshim on linux copy your license file into the simvascular directory and rename it meshsim-license.dat 11 | 12 | -------- 13 | 14 | To add SimVascular to your path (this is very helpful with using svsolver), you will need to run the post-install script: 15 | 16 | sudo bash setup-symlinks.sh 17 | 18 | This script places symbolic links in /usr/local/bin to the simvascular executable scripts. 19 | You may wish to edit the symbolic links. 20 | 21 | Note that the solver can be run with mpiexec. 22 | For example to run on two processors: 23 | cd /folder/with/input 24 | mpiexec -np 2 svsolver 25 | 26 | -- -------------------------------------------------------------------------------- /Code/Scripts/README-postinstall: -------------------------------------------------------------------------------- 1 | 2 | To add SimVascular to your path, you will need to run the post-install script. 3 | This script places symbolic links in /usr/local/bin to the simvascular executables. -------------------------------------------------------------------------------- /Code/Scripts/executable/developer/locate-linux-script.in: -------------------------------------------------------------------------------- 1 | SOURCE="${BASH_SOURCE[0]}" 2 | while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink 3 | TARGET="$(readlink "$SOURCE")" 4 | if [[ $SOURCE == /* ]]; then 5 | SOURCE="$TARGET" 6 | else 7 | DIR="$( dirname "$SOURCE" )" 8 | SOURCE="$DIR/$TARGET" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located 9 | fi 10 | done 11 | RDIR="$( dirname "$SOURCE" )" 12 | DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" 13 | -------------------------------------------------------------------------------- /Code/Scripts/executable/developer/svpost-linux.in: -------------------------------------------------------------------------------- 1 | 2 | # run the executable 3 | case "$*" in 4 | "") 5 | $SV_HOME/bin/@SV_POSTSOLVER_EXE@ 6 | ;; 7 | *) 8 | $SV_HOME/bin/@SV_POSTSOLVER_EXE@ $* 9 | ;; 10 | esac 11 | 12 | -------------------------------------------------------------------------------- /Code/Scripts/executable/developer/svpost-windows.in: -------------------------------------------------------------------------------- 1 | 2 | "%SV_HOME%\Bin\@SV_POSTSOLVER_EXE@@WIN_EXE@$ * 3 | -------------------------------------------------------------------------------- /Code/Scripts/executable/developer/svpre-linux.in: -------------------------------------------------------------------------------- 1 | $SV_HOME/bin/@SV_PRESOLVER_EXE@ $* 2 | -------------------------------------------------------------------------------- /Code/Scripts/executable/developer/svpre-windows.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | "%SV_HOME%\Bin\@SV_PRESOLVER_EXE@@WIN_EXE@$ * 4 | -------------------------------------------------------------------------------- /Code/Scripts/executable/developer/svsolver-linux.in: -------------------------------------------------------------------------------- 1 | export LES_LICENSE_SERVER=@LES_LICENSE_SERVER@ 2 | export FLOWSOLVER_CONFIG=@ENV_SV_HOME@/bin/ 3 | $SV_HOME/bin/@SV_FLOWSOLVER_EXE@ $* 4 | -------------------------------------------------------------------------------- /Code/Scripts/executable/developer/svsolver-nompi-linux.in: -------------------------------------------------------------------------------- 1 | export LES_LICENSE_SERVER=@LES_LICENSE_SERVER@ 2 | export FLOWSOLVER_CONFIG=@ENV_SV_HOME@/Bin/ 3 | $SV_HOME/bin/@SV_FLOWSOLVER_EXE@-nompi $* 4 | -------------------------------------------------------------------------------- /Code/Scripts/executable/developer/svsolver-nompi-windows.in: -------------------------------------------------------------------------------- 1 | set LES_LICENSE_SERVER=@LES_LICENSE_SERVER@ 2 | set FLOWSOLVER_CONFIG=@ENV_SV_HOME@\Bin\ 3 | 4 | %SV_HOME%\Bin\@SV_FLOWSOLVER_EXE@-nompi@WIN_EXE@ 5 | -------------------------------------------------------------------------------- /Code/Scripts/executable/developer/svsolver-windows.in: -------------------------------------------------------------------------------- 1 | set LES_LICENSE_SERVER=@LES_LICENSE_SERVER@ 2 | set FLOWSOLVER_CONFIG=@ENV_SV_HOME@\Bin\ 3 | 4 | "@MPIEXEC@" -np %1 "%SV_HOME%\Bin\@SV_FLOWSOLVER_EXE@@WIN_EXE@" %2 %3 %4 5 | -------------------------------------------------------------------------------- /Code/Scripts/executable/install/svpost-linux.in: -------------------------------------------------------------------------------- 1 | 2 | # run the executable 3 | case "$*" in 4 | "") 5 | $SV_HOME/@SV_INSTALL_RUNTIME_DIR@/@SV_POSTSOLVER_EXE@@CMAKE_EXECUTABLE_SUFFIX@ 6 | ;; 7 | *) 8 | $SV_HOME/@SV_INSTALL_RUNTIME_DIR@/@SV_POSTSOLVER_EXE@@CMAKE_EXECUTABLE_SUFFIX@ $* 9 | ;; 10 | esac 11 | 12 | -------------------------------------------------------------------------------- /Code/Scripts/executable/install/svpost-windows.in: -------------------------------------------------------------------------------- 1 | 2 | "%SV_HOME%\@SV_INSTALL_RUNTIME_DIR@\@SV_POSTSOLVER_EXE@@CMAKE_EXECUTABLE_SUFFIX@ * 3 | -------------------------------------------------------------------------------- /Code/Scripts/executable/install/svpre-linux.in: -------------------------------------------------------------------------------- 1 | $SV_HOME/@SV_INSTALL_RUNTIME_DIR@/@SV_PRESOLVER_EXE@@CMAKE_EXECUTABLE_SUFFIX@ $* 2 | -------------------------------------------------------------------------------- /Code/Scripts/executable/install/svpre-windows.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | "%SV_HOME%\@SV_INSTALL_RUNTIME_DIR@\@SV_PRESOLVER_EXE@@CMAKE_EXECUTABLE_SUFFIX@ $* 4 | -------------------------------------------------------------------------------- /Code/Scripts/executable/install/svsolver-linux.in: -------------------------------------------------------------------------------- 1 | export LES_LICENSE_SERVER=@LES_LICENSE_SERVER@ 2 | export FLOWSOLVER_CONFIG=@ENV_SV_HOME@/@SV_INSTALL_RUNTIME_DIR@/ 3 | $SV_HOME/@SV_INSTALL_RUNTIME_DIR@/@SV_FLOWSOLVER_EXE@@CMAKE_EXECUTABLE_SUFFIX@ $* 4 | -------------------------------------------------------------------------------- /Code/Scripts/executable/install/svsolver-nompi-linux.in: -------------------------------------------------------------------------------- 1 | export LES_LICENSE_SERVER=@LES_LICENSE_SERVER@ 2 | export FLOWSOLVER_CONFIG=@ENV_SV_HOME@/@SV_INSTALL_RUNTIME_DIR@/ 3 | $SV_HOME/@SV_INSTALL_RUNTIME_DIR@/@SV_FLOWSOLVER_EXE@-nompi@CMAKE_EXECUTABLE_SUFFIX@ $* 4 | -------------------------------------------------------------------------------- /Code/Scripts/executable/install/svsolver-nompi-windows.in: -------------------------------------------------------------------------------- 1 | set LES_LICENSE_SERVER=@LES_LICENSE_SERVER@ 2 | set FLOWSOLVER_CONFIG=@ENV_SV_HOME@\@SV_INSTALL_RUNTIME_DIR@\ 3 | 4 | %SV_HOME%\@SV_INSTALL_RUNTIME_DIR@\@SV_FLOWSOLVER_EXE@-nompi@CMAKE_EXECUTABLE_SUFFIX@" %2 %3 %4 5 | -------------------------------------------------------------------------------- /Code/Scripts/executable/install/svsolver-windows.in: -------------------------------------------------------------------------------- 1 | set LES_LICENSE_SERVER=@LES_LICENSE_SERVER@ 2 | set FLOWSOLVER_CONFIG=@ENV_SV_HOME@\@SV_INSTALL_RUNTIME_DIR@\ 3 | 4 | %SV_HOME%\mpiexec@CMAKE_EXECUTABLE_SUFFIX@ -np %1 "%SV_HOME%\@SV_INSTALL_RUNTIME_DIR@\@SV_FLOWSOLVER_EXE@@CMAKE_EXECUTABLE_SUFFIX@" %2 %3 %4 5 | -------------------------------------------------------------------------------- /Code/Scripts/home-locate-linux.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -f 2 | # Copyright (c) 2014-2015 The Regents of the University of California. 3 | # All Rights Reserved. 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining 6 | # a copy of this software and associated documentation files (the 7 | # "Software"), to deal in the Software without restriction, including 8 | # without limitation the rights to use, copy, modify, merge, publish, 9 | # distribute, sublicense, and/or sell copies of the Software, and to 10 | # permit persons to whom the Software is furnished to do so, subject 11 | # to the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included 14 | # in all copies or substantial portions of the Software. 15 | # 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 17 | # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 18 | # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 19 | # PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 20 | # OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 23 | # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | 28 | SOURCE="${BASH_SOURCE[0]}" 29 | while [ -h "$SOURCE" ]; do 30 | TARGET="$(readlink "$SOURCE")" 31 | if [[ $SOURCE == /* ]]; then 32 | SOURCE="$TARGET" 33 | else 34 | DIR="$( dirname "$SOURCE" )" 35 | SOURCE="$DIR/$TARGET" 36 | fi 37 | done 38 | RDIR="$( dirname "$SOURCE" )" 39 | DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" -------------------------------------------------------------------------------- /Code/ThirdParty/README: -------------------------------------------------------------------------------- 1 | The files in this directory are included only for convience when compiling SimVascular. They have their own license agreements. Only minimal changes have been made to allow their use in SimVascular. 2 | Please see README.simvascular in each directory for more details. -------------------------------------------------------------------------------- /Code/ThirdParty/metis/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | simvascular_third_party(metis) 2 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis.h.in: -------------------------------------------------------------------------------- 1 | /*========================================================================= 2 | * 3 | * Copyright (c) 2014-2015 The Regents of the University of California. 4 | * All Rights Reserved. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject 12 | * to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 18 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 20 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 21 | * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 24 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 25 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | * 29 | *=========================================================================*/ 30 | 31 | #ifndef __simvascular_metis_h 32 | #define __simvascular_metis_h 33 | 34 | /* Use the metis library configured for SimVascular. */ 35 | #cmakedefine SV_USE_SYSTEM_METIS 36 | #ifdef SV_USE_SYSTEM_METIS 37 | # include 38 | #else 39 | #include 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/CHANGES.nate.2013.11.26: -------------------------------------------------------------------------------- 1 | log2 now conflicts on linux, renamed metislog2 in rename.h 2 | 3 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.8) 2 | project(METIS) 3 | if (NOT METIS_LIBRARY_NAME) 4 | set(METIS_LIBRARY_NAME metis) 5 | endif() 6 | 7 | #set default build type to relwithdebinfo, also sets flags O2 on linux 8 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 9 | message(STATUS "Setting build type to 'RelWithDebInfo' as none was specified.") 10 | set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Choose the type of build." FORCE) 11 | mark_as_advanced(CMAKE_BUILD_TYPE) 12 | # Set the possible values of build type for cmake-gui 13 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" 14 | "MinSizeRel" "RelWithDebInfo") 15 | endif() 16 | 17 | if(WIN32) 18 | add_definitions("/Zi") 19 | add_definitions("-DWINDOWS") 20 | endif() 21 | 22 | add_subdirectory(Lib) 23 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/FILES: -------------------------------------------------------------------------------- 1 | 2 | The distribution of METIS 4.0 consists of a number of files arranged 3 | in five directories. The files contained in each directory are as follows: 4 | 5 | Doc/ Contains METIS's user manual 6 | 7 | Graphs/ Contains some small sample graphs and meshes 8 | that can be used with METIS. 9 | 10 | Lib/ Contains the code for METIS's library 11 | 12 | Programs/ Contains the code for METIS's stand-alone programs 13 | 14 | Test/ Contains a comprehensive tester for METIS's partitioning 15 | routines. 16 | 17 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Lib/Makefile: -------------------------------------------------------------------------------- 1 | # Hey emacs, this is a -*- makefile -*- 2 | 3 | # Copyright (c) 2015 Open Source Medical Software Corporation, 4 | # University of California, San Diego. 5 | # 6 | # All rights reserved. 7 | # 8 | # Permission is hereby granted, free of charge, to any person obtaining 9 | # a copy of this software and associated documentation files (the 10 | # "Software"), to deal in the Software without restriction, including 11 | # without limitation the rights to use, copy, modify, merge, publish, 12 | # distribute, sublicense, and/or sell copies of the Software, and to 13 | # permit persons to whom the Software is furnished to do so, subject 14 | # to the following conditions: 15 | # 16 | # The above copyright notice and this permission notice shall be included 17 | # in all copies or substantial portions of the Software. 18 | # 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 20 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 22 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 23 | # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 24 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 25 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | TOP=../../../../../BuildWithMake 28 | 29 | include $(TOP)/include.mk 30 | 31 | CCFLAGS = $(GLOBAL_CCFLAGS) -I . 32 | 33 | HDRS = defs.h macros.h metis.h \ 34 | proto.h rename.h struct.h 35 | 36 | CSRCS = coarsen.c fm.c initpart.c match.c ccgraph.c memory.c \ 37 | pmetis.c pqueue.c refine.c util.c timing.c debug.c \ 38 | bucketsort.c graph.c stat.c kmetis.c kwayrefine.c \ 39 | kwayfm.c balance.c ometis.c srefine.c sfm.c separator.c \ 40 | mincover.c mmd.c mesh.c meshpart.c frename.c fortran.c \ 41 | myqsort.c compress.c parmetis.c estmem.c \ 42 | mpmetis.c mcoarsen.c mmatch.c minitpart.c mbalance.c \ 43 | mrefine.c mutil.c mfm.c mkmetis.c mkwayrefine.c mkwayfmh.c \ 44 | mrefine2.c minitpart2.c mbalance2.c mfm2.c \ 45 | kvmetis.c kwayvolrefine.c kwayvolfm.c subdomains.c 46 | 47 | TARGET_LIB_NAME = simvascular_thirdparty_metis 48 | 49 | include $(TOP)/targetlib.mk 50 | 51 | 52 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Lib/Makefile.metis.org: -------------------------------------------------------------------------------- 1 | include ../Makefile.in 2 | 3 | INCLUDES = -I. 4 | 5 | CFLAGS = $(COPTIONS) $(OPTFLAGS) $(INCLUDES) 6 | LD = $(CC) -L. 7 | 8 | 9 | OBJS = coarsen.o fm.o initpart.o match.o ccgraph.o memory.o \ 10 | pmetis.o pqueue.o refine.o util.o timing.o debug.o \ 11 | bucketsort.o graph.o stat.o kmetis.o kwayrefine.o \ 12 | kwayfm.o balance.o ometis.o srefine.o sfm.o separator.o \ 13 | mincover.o mmd.o mesh.o meshpart.o frename.o fortran.o \ 14 | myqsort.o compress.o parmetis.o estmem.o \ 15 | mpmetis.o mcoarsen.o mmatch.o minitpart.o mbalance.o \ 16 | mrefine.o mutil.o mfm.o mkmetis.o mkwayrefine.o mkwayfmh.o \ 17 | mrefine2.o minitpart2.o mbalance2.o mfm2.o \ 18 | kvmetis.o kwayvolrefine.o kwayvolfm.o subdomains.o 19 | 20 | .c.o: 21 | $(CC) $(CFLAGS) -c $*.c 22 | 23 | ../libmetis.a: $(OBJS) 24 | $(AR) $@ $(OBJS) 25 | $(RANLIB) $@ 26 | 27 | clean: 28 | rm -f *.o 29 | 30 | realclean: 31 | rm -f *.o ; rm -f ../libmetis.a 32 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Lib/Makefile.windows: -------------------------------------------------------------------------------- 1 | include ../Makefile.in.windows 2 | 3 | INCLUDES = -I. 4 | 5 | CFLAGS = $(COPTIONS) $(OPTFLAGS) $(INCLUDES) 6 | LD = $(CC) -L. 7 | 8 | 9 | OBJS = coarsen.o fm.o initpart.o match.o ccgraph.o memory.o \ 10 | pmetis.o pqueue.o refine.o util.o timing.o debug.o \ 11 | bucketsort.o graph.o stat.o kmetis.o kwayrefine.o \ 12 | kwayfm.o balance.o ometis.o srefine.o sfm.o separator.o \ 13 | mincover.o mmd.o mesh.o meshpart.o frename.o fortran.o \ 14 | myqsort.o compress.o parmetis.o estmem.o \ 15 | mpmetis.o mcoarsen.o mmatch.o minitpart.o mbalance.o \ 16 | mrefine.o mutil.o mfm.o mkmetis.o mkwayrefine.o mkwayfmh.o \ 17 | mrefine2.o minitpart2.o mbalance2.o mfm2.o \ 18 | kvmetis.o kwayvolrefine.o kwayvolfm.o subdomains.o 19 | 20 | WINOBJS = $(OBJS:.o=.obj) 21 | 22 | .c.o: 23 | $(CC) $(CFLAGS) -c $*.c 24 | .c.obj: 25 | $(CC) $(CFLAGS) -c $*.c 26 | 27 | libmetis.lib: $(OBJS) 28 | $(AR)$@ $(WINOBJS) 29 | # $(RANLIB) $@ 30 | 31 | libmetis.a: $(OBJS) 32 | $(AR) $@ $(OBJS) 33 | $(RANLIB) $@ 34 | 35 | clean: 36 | rm -f *.o 37 | rm -f *.obj 38 | 39 | realclean: 40 | rm -f *.o ; rm -f libmetis.a 41 | rm -f *.obj ; rm -f libmetis.lib 42 | rm -f *.pdb 43 | rm -f ../*.exe* 44 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Lib/bucketsort.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1997, Regents of the University of Minnesota 3 | * 4 | * bucketsort.c 5 | * 6 | * This file contains code that implement a variety of counting sorting 7 | * algorithms 8 | * 9 | * Started 7/25/97 10 | * George 11 | * 12 | * $Id: bucketsort.c,v 1.1 1998/11/27 17:59:11 karypis Exp $ 13 | * 14 | */ 15 | 16 | #include 17 | 18 | 19 | 20 | /************************************************************************* 21 | * This function uses simple counting sort to return a permutation array 22 | * corresponding to the sorted order. The keys are assumed to start from 23 | * 0 and they are positive. This sorting is used during matching. 24 | **************************************************************************/ 25 | void BucketSortKeysInc(int n, int max, idxtype *keys, idxtype *tperm, idxtype *perm) 26 | { 27 | int i, ii; 28 | idxtype *counts; 29 | 30 | counts = idxsmalloc(max+2, 0, "BucketSortKeysInc: counts"); 31 | 32 | for (i=0; i 16 | #ifdef __STDC__ 17 | #include 18 | #else 19 | #include 20 | #endif 21 | #ifndef WINDOWS 22 | #include 23 | #endif 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | 30 | #ifdef DMALLOC 31 | #include 32 | #endif 33 | 34 | #include 35 | #include 36 | #include 37 | #include 38 | #include 39 | 40 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Lib/metis.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1997, Regents of the University of Minnesota 3 | * 4 | * metis.h 5 | * 6 | * This file includes all necessary header files 7 | * 8 | * Started 8/27/94 9 | * George 10 | * 11 | * $Id: metis.h,v 1.1 1998/11/27 17:59:21 karypis Exp $ 12 | */ 13 | 14 | 15 | #include 16 | #ifdef __STDC__ 17 | #include 18 | #else 19 | #include 20 | #endif 21 | #ifndef WINDOWS 22 | #include 23 | #endif 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | 30 | #ifdef DMALLOC 31 | #include 32 | #endif 33 | 34 | #include "./defs.h" 35 | #include "./struct.h" 36 | #include "./macros.h" 37 | #include "./rename.h" 38 | #include "./proto.h" 39 | 40 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Lib/metis.h.org: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1997, Regents of the University of Minnesota 3 | * 4 | * metis.h 5 | * 6 | * This file includes all necessary header files 7 | * 8 | * Started 8/27/94 9 | * George 10 | * 11 | * $Id: metis.h,v 1.1 1998/11/27 17:59:21 karypis Exp $ 12 | */ 13 | 14 | 15 | #include 16 | #ifdef __STDC__ 17 | #include 18 | #else 19 | #include 20 | #endif 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | 28 | #ifdef DMALLOC 29 | #include 30 | #endif 31 | 32 | #include 33 | #include 34 | #include 35 | #include 36 | #include 37 | 38 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Lib/mrefine2.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1997, Regents of the University of Minnesota 3 | * 4 | * mrefine2.c 5 | * 6 | * This file contains the driving routines for multilevel refinement 7 | * 8 | * Started 7/24/97 9 | * George 10 | * 11 | * $Id: mrefine2.c,v 1.1 1998/11/27 17:59:26 karypis Exp $ 12 | */ 13 | 14 | #include 15 | 16 | 17 | /************************************************************************* 18 | * This function is the entry point of refinement 19 | **************************************************************************/ 20 | void MocRefine2Way2(CtrlType *ctrl, GraphType *orggraph, GraphType *graph, float *tpwgts, 21 | float *ubvec) 22 | { 23 | 24 | IFSET(ctrl->dbglvl, DBG_TIME, starttimer(ctrl->UncoarsenTmr)); 25 | 26 | /* Compute the parameters of the coarsest graph */ 27 | MocCompute2WayPartitionParams(ctrl, graph); 28 | 29 | for (;;) { 30 | ASSERT(CheckBnd(graph)); 31 | 32 | IFSET(ctrl->dbglvl, DBG_TIME, starttimer(ctrl->RefTmr)); 33 | switch (ctrl->RType) { 34 | case RTYPE_FM: 35 | MocBalance2Way2(ctrl, graph, tpwgts, ubvec); 36 | MocFM_2WayEdgeRefine2(ctrl, graph, tpwgts, ubvec, 8); 37 | break; 38 | default: 39 | errexit("Unknown refinement type: %d\n", ctrl->RType); 40 | } 41 | IFSET(ctrl->dbglvl, DBG_TIME, stoptimer(ctrl->RefTmr)); 42 | 43 | if (graph == orggraph) 44 | break; 45 | 46 | graph = graph->finer; 47 | IFSET(ctrl->dbglvl, DBG_TIME, starttimer(ctrl->ProjectTmr)); 48 | MocProject2WayPartition(ctrl, graph); 49 | IFSET(ctrl->dbglvl, DBG_TIME, stoptimer(ctrl->ProjectTmr)); 50 | } 51 | 52 | IFSET(ctrl->dbglvl, DBG_TIME, stoptimer(ctrl->UncoarsenTmr)); 53 | } 54 | 55 | 56 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Lib/temp/metis.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1997, Regents of the University of Minnesota 3 | * 4 | * metis.h 5 | * 6 | * This file includes all necessary header files 7 | * 8 | * Started 8/27/94 9 | * George 10 | * 11 | * $Id: metis.h,v 1.1 1998/11/27 17:59:21 karypis Exp $ 12 | */ 13 | 14 | 15 | #include 16 | #ifdef __STDC__ 17 | #include 18 | #else 19 | #include 20 | #endif 21 | #ifndef WINDOWS 22 | #include 23 | #endif 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | 30 | #ifdef DMALLOC 31 | #include 32 | #endif 33 | 34 | #include "./metis_defs.h" 35 | #include "./metis_struct.h" 36 | #include "./metis_macros.h" 37 | #include "./metis_rename.h" 38 | #include "./metis_proto.h" 39 | 40 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Makefile: -------------------------------------------------------------------------------- 1 | 2 | 3 | default: 4 | (cd Lib ; make ) 5 | (cd Programs ; make ) 6 | (cd Test ; make ) 7 | 8 | clean: 9 | (cd Lib ; make clean ) 10 | (cd Programs ; make clean ) 11 | (cd Test ; make clean ) 12 | 13 | realclean: 14 | (cd Lib ; make realclean ) 15 | (cd Programs ; make realclean ) 16 | (cd Test ; make realclean ) 17 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Makefile.in: -------------------------------------------------------------------------------- 1 | 2 | # Which compiler to use 3 | CC = cc 4 | 5 | # What optimization level to use 6 | OPTFLAGS = -O2 7 | 8 | # What options to be used by the compiler 9 | COPTIONS = 10 | 11 | # What options to be used by the loader 12 | LDOPTIONS = 13 | 14 | # What archiving to use 15 | AR = ar rv 16 | 17 | # What to use for indexing the archive 18 | RANLIB = ranlib 19 | #RANLIB = ar -ts 20 | #RANLIB = 21 | 22 | 23 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Makefile.in.windows: -------------------------------------------------------------------------------- 1 | 2 | # Which compiler to use 3 | 4 | # windows 5 | #CC = CL /MD 6 | CC = CL 7 | 8 | # linux 9 | #CC = icc 10 | 11 | # What optimization level to use 12 | 13 | # windows 14 | OPTFLAGS = /Zi /Ox 15 | 16 | # linux 17 | #OPTFLAGS = -O2 18 | 19 | # What options to be used by the compiler 20 | 21 | # windows 22 | COPTIONS = /DWINDOWS 23 | 24 | # What options to be used by the loader 25 | LDOPTIONS = 26 | 27 | # What archiving to use 28 | 29 | # windows 30 | AR = lib /out: 31 | 32 | # linux 33 | #AR = ar rv 34 | 35 | # What to use for indexing the archive 36 | 37 | # linux 38 | #RANLIB = ranlib 39 | #RANLIB = ar -ts 40 | #RANLIB = 41 | 42 | 43 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Programs/graphchk.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1997, Regents of the University of Minnesota 3 | * 4 | * graphchk.c 5 | * 6 | * This file checks the validity of a graph 7 | * 8 | * Started 8/28/94 9 | * George 10 | * 11 | * $Id: graphchk.c,v 1.1 1998/11/27 17:59:33 karypis Exp $ 12 | * 13 | */ 14 | 15 | #include 16 | 17 | 18 | 19 | /************************************************************************* 20 | * Let the game begin 21 | **************************************************************************/ 22 | main(int argc, char *argv[]) 23 | { 24 | GraphType graph; 25 | char filename[256]; 26 | int wgtflag; 27 | 28 | if (argc != 2) { 29 | printf("Usage: %s \n", argv[0]); 30 | exit(0); 31 | } 32 | 33 | strcpy(filename, argv[1]); 34 | 35 | ReadGraph(&graph, filename, &wgtflag); 36 | if (graph.nvtxs == 0) { 37 | printf("Empty graph!\n"); 38 | exit(0); 39 | } 40 | 41 | printf("**********************************************************************\n"); 42 | printf("%s", METISTITLE); 43 | printf("Graph Information ---------------------------------------------------\n"); 44 | printf(" Name: %s, #Vertices: %d, #Edges: %d\n\n", filename, graph.nvtxs, graph.nedges/2); 45 | printf("Checking Graph... ---------------------------------------------------\n"); 46 | 47 | if (CheckGraph(&graph)) 48 | printf(" The format of the graph is correct!\n"); 49 | else 50 | printf(" The format of the graph is incorrect!\n"); 51 | 52 | printf("\n**********************************************************************\n"); 53 | 54 | 55 | GKfree(&graph.xadj, &graph.adjncy, &graph.vwgt, &graph.adjwgt, LTERM); 56 | } 57 | 58 | 59 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/README.simvascular: -------------------------------------------------------------------------------- 1 | This contains metis 4.0.1 with few custom changes for use in simvascular. 2 | This package is distributed under its own license agreement. 3 | We include them here for convience, without modification, except for the notes below. 4 | 5 | Changed Files 6 | ------------- 7 | CMakeList.txt 8 | Change to library name when compiling as part of the thirdparty directory. 9 | Lib/CMakeList.txt 10 | Change to library name when compiling as part of the thirdparty directory. 11 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/Test/Makefile: -------------------------------------------------------------------------------- 1 | include ../Makefile.in 2 | 3 | BINDIR = ../Graphs 4 | 5 | INCLUDES = -I../Lib 6 | CFLAGS = $(COPTIONS) $(OPTFLAGS) $(INCLUDES) 7 | 8 | LIBS = -lmetis -lm 9 | LD = $(CC) $(LDOPTIONS) -L. -L.. 10 | METISLIB = ../libmetis.a 11 | 12 | 13 | 14 | MTESTOBJS = mtest.o ../Programs/io.o 15 | 16 | 17 | .c.o: 18 | $(CC) $(CFLAGS) -c $*.c 19 | 20 | default: $(BINDIR)/mtest 21 | 22 | $(BINDIR)/mtest: $(MTESTOBJS) $(METISLIB) 23 | $(LD) -o $@ $(MTESTOBJS) $(LIBS) 24 | chmod 755 $@ 25 | 26 | clean: 27 | rm -f *.o 28 | 29 | realclean: 30 | rm -f *.o ;\ 31 | rm -f $(BINDIR)/mtest 32 | -------------------------------------------------------------------------------- /Code/ThirdParty/metis/simvascular_metis/VERSION: -------------------------------------------------------------------------------- 1 | METIS 4.0.1 Mon Nov 30 10:27:29 CST 1998 2 | -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Include/mpi.f90: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Include/mpi.f90 -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Include/mpi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Include/mpi.h -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Include/mpi.h.org: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Include/mpi.h.org -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Include/mpif.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Include/mpif.h -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Include/mpif.h.org: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Include/mpif.h.org -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Include/mpio.h: -------------------------------------------------------------------------------- 1 | 2 | #error do not include mpio.h, use mpi.h 3 | 4 | -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Include/x64/mpifptr.h: -------------------------------------------------------------------------------- 1 | ! -*- Mode: F77; F90; -*- 2 | ! 3 | ! (C) Microsoft Corporation. 4 | ! 5 | INTEGER MPI_AINT 6 | PARAMETER (MPI_AINT=z'4c00083b') 7 | -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Include/x86/mpifptr.h: -------------------------------------------------------------------------------- 1 | ! -*- Mode: F77; F90; -*- 2 | ! 3 | ! (C) Microsoft Corporation. 4 | ! 5 | INTEGER MPI_AINT 6 | PARAMETER (MPI_AINT=z'4c00043b') 7 | -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Installers/MSMpiSetup.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Installers/MSMpiSetup.exe -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Installers/msmpisdk.msi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Installers/msmpisdk.msi -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Lib/x64/msmpi.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Lib/x64/msmpi.lib -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Lib/x64/msmpifec.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Lib/x64/msmpifec.lib -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Lib/x64/msmpifmc.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Lib/x64/msmpifmc.lib -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Lib/x86/msmpi.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Lib/x86/msmpi.lib -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Lib/x86/msmpifec.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Lib/x86/msmpifec.lib -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Lib/x86/msmpifes.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Lib/x86/msmpifes.lib -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Lib/x86/msmpifmc.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Lib/x86/msmpifmc.lib -------------------------------------------------------------------------------- /Code/ThirdParty/msmpi/Lib/x86/msmpifms.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Code/ThirdParty/msmpi/Lib/x86/msmpifms.lib -------------------------------------------------------------------------------- /Code/ThirdParty/nspcg/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #simvascular_third_party(nspcg) 2 | -------------------------------------------------------------------------------- /Code/ThirdParty/nspcg/Makefile: -------------------------------------------------------------------------------- 1 | # Hey emacs, this is a -*- makefile -*- 2 | 3 | # Copyright (c) 2015 Open Source Medical Software Corporation, 4 | # University of California, San Diego. 5 | # 6 | # All rights reserved. 7 | # 8 | # Permission is hereby granted, free of charge, to any person obtaining 9 | # a copy of this software and associated documentation files (the 10 | # "Software"), to deal in the Software without restriction, including 11 | # without limitation the rights to use, copy, modify, merge, publish, 12 | # distribute, sublicense, and/or sell copies of the Software, and to 13 | # permit persons to whom the Software is furnished to do so, subject 14 | # to the following conditions: 15 | # 16 | # The above copyright notice and this permission notice shall be included 17 | # in all copies or substantial portions of the Software. 18 | # 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 20 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 22 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 23 | # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 24 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 25 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | TOP=../../../BuildWithMake 28 | 29 | include $(TOP)/include.mk 30 | 31 | NSPCG_SUBDIRS = simvascular_nspcg 32 | 33 | lib: libsubdirs 34 | 35 | shared: 36 | 37 | libsubdirs: 38 | @for i in ${NSPCG_SUBDIRS}; do ( \ 39 | cd $$i; \ 40 | $(MAKE)) ; done 41 | 42 | clean: 43 | for i in ${NSPCG_SUBDIRS}; do ( \ 44 | cd $$i; \ 45 | $(MAKE) clean ) ; done 46 | 47 | veryclean: clean 48 | for i in ${NSPCG_SUBDIRS}; do ( \ 49 | cd $$i; \ 50 | $(MAKE) veryclean ) ; done 51 | 52 | -------------------------------------------------------------------------------- /Code/ThirdParty/nspcg/simvascular_nspcg.h.in: -------------------------------------------------------------------------------- 1 | /*========================================================================= 2 | * 3 | * Copyright (c) 2014-2015 The Regents of the University of California. 4 | * All Rights Reserved. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject 12 | * to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 18 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 20 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 21 | * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 24 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 25 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | * 29 | *=========================================================================*/ 30 | 31 | #ifndef __simvascular_nspcg_h 32 | #define __simvascular_nspcg_h 33 | 34 | /* Use the nspcg library configured for SimVascular. */ 35 | #cmakedefine SV_USE_SYSTEM_NSPCG 36 | #ifdef SV_USE_SYSTEM_NSPCG 37 | #include 38 | #else 39 | #include 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /Code/ThirdParty/nspcg/simvascular_nspcg/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.8) 2 | 3 | Project(NSPCG Fortran) 4 | if (NOT NSPCG_LIBRARY_NAME) 5 | set(NSPCG_LIBRARY_NAME nspcg) 6 | endif() 7 | #set default build type to relwithdebinfo, also sets flags O2 on linux 8 | if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 9 | message(STATUS "Setting build type to 'RelWithDebInfo' as none was specified.") 10 | set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Choose the type of build." FORCE) 11 | mark_as_advanced(CMAKE_BUILD_TYPE) 12 | # Set the possible values of build type for cmake-gui 13 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" 14 | "MinSizeRel" "RelWithDebInfo") 15 | endif() 16 | 17 | if(WIN32) 18 | add_definitions("/Zi /Ox /MD") 19 | endif() 20 | 21 | add_definitions("-w") 22 | 23 | set(FSRCS nspcg1.f nspcg2.f nspcg3.f nspcg4.f nspcg5.f) 24 | if(SV_USE_THIRDPARTY_SHARED_LIBRARIES) 25 | add_library(${NSPCG_LIBRARY_NAME} SHARED ${FSRCS}) 26 | else() 27 | add_library(${NSPCG_LIBRARY_NAME} STATIC ${FSRCS}) 28 | endif() 29 | 30 | if(SV_INSTALL_LIBS) 31 | install(TARGETS ${NSPCG_LIBRARY_NAME} 32 | RUNTIME DESTINATION ${SV_INSTALL_RUNTIME_DIR} COMPONENT ThirdPartyExecutables 33 | LIBRARY DESTINATION ${SV_INSTALL_LIBRARY_DIR} COMPONENT ThirdPartyLibraries 34 | ARCHIVE DESTINATION ${SV_INSTALL_ARCHIVE_DIR} COMPONENT ThirdPartyLibraries 35 | ) 36 | endif() 37 | -------------------------------------------------------------------------------- /Code/ThirdParty/nspcg/simvascular_nspcg/Makefile: -------------------------------------------------------------------------------- 1 | # Hey emacs, this is a -*- makefile -*- 2 | 3 | # Copyright (c) 2015 Open Source Medical Software Corporation, 4 | # University of California, San Diego. 5 | # 6 | # All rights reserved. 7 | # 8 | # Permission is hereby granted, free of charge, to any person obtaining 9 | # a copy of this software and associated documentation files (the 10 | # "Software"), to deal in the Software without restriction, including 11 | # without limitation the rights to use, copy, modify, merge, publish, 12 | # distribute, sublicense, and/or sell copies of the Software, and to 13 | # permit persons to whom the Software is furnished to do so, subject 14 | # to the following conditions: 15 | # 16 | # The above copyright notice and this permission notice shall be included 17 | # in all copies or substantial portions of the Software. 18 | # 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 20 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 22 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 23 | # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 24 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 25 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | TOP=../../../../BuildWithMake 28 | 29 | include $(TOP)/include.mk 30 | 31 | FFLAGS = $(GLOBAL_FFLAGS) 32 | 33 | FSRCS = nspcg1.f nspcg2.f nspcg3.f nspcg4.f nspcg5.f 34 | 35 | TARGET_LIB_NAME = simvascular_thirdparty_nspcg 36 | 37 | include $(TOP)/targetlib.mk 38 | 39 | 40 | -------------------------------------------------------------------------------- /Code/ThirdParty/nspcg/simvascular_nspcg/README.simvascular: -------------------------------------------------------------------------------- 1 | This contains nspcg with few custom changes for use in simvascular. 2 | This package is distributed under its own license agreement. 3 | We include them here for convience, without modification, except for the notes below. 4 | 5 | Added Files 6 | ------------- 7 | CMakeList.txt 8 | -Support to build using CMake was added. 9 | 10 | -------------------------------------------------------------------------------- /Code/ThirdParty/nspcg/simvascular_nspcg/tstnsp2.f: -------------------------------------------------------------------------------- 1 | program main 2 | c 3 | c ... array declarations. 4 | c 5 | implicit double precision (a-h, o-z) 6 | parameter (nxx = 20) 7 | parameter (nlen = nxx*nxx) 8 | parameter (nwk = 10*nlen) 9 | parameter (inwk = 3*nlen) 10 | dimension coef(nlen,3), rhs(nlen), u(nlen), wksp(nwk), ubar(1), 11 | a rparm(16) 12 | integer jcoef(3), iwksp(inwk), iparm(25), p(1), ip(1) 13 | external cg, bic2 14 | c 15 | ndim = nlen 16 | mdim = 3 17 | nw = nwk 18 | inw = inwk 19 | zeta = 1.0d-5 20 | nout = 6 21 | c 22 | c ... generate coef, jcoef, and rhs. 23 | c 24 | nx = nxx 25 | ny = nx 26 | n = nx*ny 27 | h = 1.0d0/dble(nx + 1) 28 | maxnz = 3 29 | do i = 1,n 30 | coef(i,1) = 6.0d0 31 | coef(i,2) = -1.0d0 32 | coef(i,3) = -2.0d0 33 | rhs(i) = 0.0d0 34 | enddo 35 | k = 0 36 | do j = 1,ny 37 | y = dble(j)*h 38 | do i = 1,nx 39 | x = dble(i)*h 40 | k = k + 1 41 | if (j .eq. 1) then 42 | rhs(k) = rhs(k) + 2.0d0 43 | endif 44 | if (j .eq. ny) then 45 | rhs(k) = rhs(k) + 2.0d0*(1.0d0 + x) 46 | coef(k,3) = 0.0d0 47 | endif 48 | if (i .eq. 1) then 49 | rhs(k) = rhs(k) + 1.0d0 50 | endif 51 | if (i .eq. nx) then 52 | rhs(k) = rhs(k) + 1.0d0 + y 53 | coef(k,2) = 0.0d0 54 | endif 55 | enddo 56 | enddo 57 | jcoef(1) = 0 58 | jcoef(2) = 1 59 | jcoef(3) = nx 60 | call dfault (iparm,rparm) 61 | c 62 | c ... now, reset some default values. 63 | c 64 | iparm(3) = 3 65 | iparm(4) = nout 66 | iparm(18) = 1 67 | iparm(19) = nx 68 | rparm(1) = zeta 69 | c 70 | c ... generate an initial guess for u and call nspcg. 71 | c 72 | call vfill (n,u,0.0d0) 73 | c 74 | call nspcg (bic2,cg,ndim,mdim,n,maxnz,coef,jcoef,p,ip, 75 | a u,ubar,rhs,wksp,iwksp,nw,inw,iparm,rparm,ier) 76 | write (nout,35) nw, inw 77 | 35 format (/1x,'nw = ',i8/ 78 | a 1x,'inw = ',i8) 79 | stop 80 | end 81 | -------------------------------------------------------------------------------- /Code/ThirdParty/nspcg/simvascular_nspcg/tstnsp4.f: -------------------------------------------------------------------------------- 1 | program main 2 | c 3 | c ... array declarations. 4 | c 5 | implicit double precision (a-h, o-z) 6 | dimension coef(120,5), rhs(100), u(100), wksp(600), ubar(1), 7 | a rparm(30) 8 | integer jcoef(5), iwksp(300), iparm(30), p(100), ip(100) 9 | integer patt(2) 10 | external sor, sor7 11 | c 12 | ndim = 120 13 | mdim = 5 14 | nw = 600 15 | inw = 300 16 | c 17 | c ... generate coef, jcoef, and rhs. 18 | c 19 | nx = 10 20 | ny = 10 21 | nz = 1 22 | n = nx*ny 23 | h = 1.0d0/dble(nx + 1) 24 | maxnz = 3 25 | do i = 1,n 26 | coef(i,1) = 6.0d0 27 | coef(i,2) = -1.0d0 28 | coef(i,3) = -2.0d0 29 | rhs(i) = 0.0d0 30 | enddo 31 | k = 0 32 | do j = 1,ny 33 | y = dble(j)*h 34 | do i = 1,nx 35 | x = dble(i)*h 36 | k = k + 1 37 | if (j .eq. 1) then 38 | rhs(k) = rhs(k) + 2.0d0 39 | endif 40 | if (j .eq. ny) then 41 | rhs(k) = rhs(k) + 2.0d0*(1.0d0 + x) 42 | coef(k,3) = 0.0d0 43 | endif 44 | if (i .eq. 1) then 45 | rhs(k) = rhs(k) + 1.0d0 46 | endif 47 | if (i .eq. nx) then 48 | rhs(k) = rhs(k) + 1.0d0 + y 49 | coef(k,2) = 0.0d0 50 | endif 51 | enddo 52 | enddo 53 | jcoef(1) = 0 54 | jcoef(2) = 1 55 | jcoef(3) = nx 56 | call dfault (iparm,rparm) 57 | c 58 | c ... now, reset some default values. 59 | c 60 | iparm(3) = 3 61 | iparm(14) = 1 62 | iparm(19) = nx 63 | c 64 | c ... generate an initial guess for u and call nspcg. 65 | c 66 | call vfill (n,u,0.0d0) 67 | c 68 | nxp = 1 69 | nyp = 2 70 | nzp = 1 71 | patt(1) = 1 72 | patt(2) = 2 73 | call color (nxp,nyp,nzp,nx,ny,nz,patt,p) 74 | call nspcg (sor7,sor,ndim,mdim,n,maxnz,coef,jcoef,p,ip, 75 | a u,ubar,rhs,wksp,iwksp,nw,inw,iparm,rparm,ier) 76 | stop 77 | end 78 | -------------------------------------------------------------------------------- /Code/ThirdParty/nspcg/simvascular_nspcg/tstnsp5.f: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | Object not found! 7 | 8 | 14 | 15 | 16 | 17 |

Object not found!

18 |

19 | 20 | 21 | The requested URL was not found on this server. 22 | 23 | 24 | 25 | The link on the 26 | referring 27 | page seems to be wrong or outdated. Please inform the author of 28 | that page 29 | about the error. 30 | 31 | 32 | 33 |

34 |

35 | If you think this is a server error, please contact 36 | the webmaster. 37 | 38 |

39 | 40 |

Error 404

41 |
42 | rene.ma.utexas.edu
43 | 44 | Mon Jun 15 18:16:57 2009
45 | Apache/2.0.55 (Debian) DAV/2 SVN/1.1.4 mod_fastcgi/2.4.2 mod_jk/1.2.18 mod_ldap_userdir/1.1.8 mod_python/3.1.3 Python/2.3.5 PHP/5.1.6-1 mod_ruby/1.2.6 Ruby/1.8.5(2006-08-25) mod_ssl/2.0.55 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8
46 |
47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Code/ThirdParty/sparse/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #simvascular_third_party(sparse) 2 | -------------------------------------------------------------------------------- /Code/ThirdParty/sparse/Makefile: -------------------------------------------------------------------------------- 1 | # Hey emacs, this is a -*- makefile -*- 2 | 3 | # Copyright (c) 2015 Open Source Medical Software Corporation, 4 | # University of California, San Diego. 5 | # 6 | # All rights reserved. 7 | # 8 | # Permission is hereby granted, free of charge, to any person obtaining 9 | # a copy of this software and associated documentation files (the 10 | # "Software"), to deal in the Software without restriction, including 11 | # without limitation the rights to use, copy, modify, merge, publish, 12 | # distribute, sublicense, and/or sell copies of the Software, and to 13 | # permit persons to whom the Software is furnished to do so, subject 14 | # to the following conditions: 15 | # 16 | # The above copyright notice and this permission notice shall be included 17 | # in all copies or substantial portions of the Software. 18 | # 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 20 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 22 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 23 | # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 24 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 25 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | TOP=../../../BuildWithMake 28 | 29 | include $(TOP)/include.mk 30 | 31 | SPARSE_SUBDIRS = simvascular_sparse 32 | 33 | lib: createHeaderFile libsubdirs 34 | 35 | shared: 36 | 37 | libsubdirs: 38 | @for i in ${SPARSE_SUBDIRS}; do ( \ 39 | cd $$i; \ 40 | $(MAKE)) ; done 41 | 42 | clean: 43 | for i in ${SPARSE_SUBDIRS}; do ( \ 44 | cd $$i; \ 45 | $(MAKE) clean ) ; done 46 | 47 | veryclean: clean 48 | rm -f simvascular_sparse.h 49 | for i in ${SPARSE_SUBDIRS}; do ( \ 50 | cd $$i; \ 51 | $(MAKE) veryclean ) ; done 52 | 53 | createHeaderFile: 54 | rm -f simvascular_sparse.h 55 | @echo "#ifndef __simvascular_sparse_h" > simvascular_sparse.h 56 | @echo "#define __simvascular_sparse_h" >> simvascular_sparse.h 57 | @echo "#include " >> simvascular_sparse.h 58 | @echo "#endif" >> simvascular_sparse.h 59 | 60 | 61 | -------------------------------------------------------------------------------- /Code/ThirdParty/sparse/simvascular_sparse.h.in: -------------------------------------------------------------------------------- 1 | /*========================================================================= 2 | * 3 | * Copyright (c) 2014-2015 The Regents of the University of California. 4 | * All Rights Reserved. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject 12 | * to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 18 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 20 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 21 | * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 24 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 25 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | * 29 | *=========================================================================*/ 30 | 31 | #ifndef __simvascular_sparse_h 32 | #define __simvascular_sparse_h 33 | 34 | /* Use the sparse library configured for SimVascular. */ 35 | #cmakedefine SV_USE_SYSTEM_SPARSE 36 | #ifdef SV_USE_SYSTEM_SPARSE 37 | #include 38 | #else 39 | #include 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /Code/ThirdParty/sparse/simvascular_sparse/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.8) 2 | 3 | Project(SPARSE) 4 | if (NOT SPARSE_LIBRARY_NAME) 5 | set(SPARSE_LIBRARY_NAME sparse) 6 | endif() 7 | 8 | set(HDRS spConfig.h spDefs.h spMatrix.h) 9 | set(CSRCS spAllocate.c spBuild.c spFactor.c spOutput.c spSolve.c spUtils.c spFortran.c) 10 | 11 | if(SV_USE_THIRDPARTY_SHARED_LIBRARIES) 12 | add_library(${SPARSE_LIBRARY_NAME} SHARED ${CSRCS}) 13 | else() 14 | add_library(${SPARSE_LIBRARY_NAME} STATIC ${CSRCS}) 15 | endif() 16 | 17 | if(SV_INSTALL_LIBS) 18 | install(TARGETS ${SPARSE_LIBRARY_NAME} 19 | RUNTIME DESTINATION ${SV_INSTALL_RUNTIME_DIR} COMPONENT ThirdPartyExecutables 20 | LIBRARY DESTINATION ${SV_INSTALL_LIBRARY_DIR} COMPONENT ThirdPartyLibraries 21 | ARCHIVE DESTINATION ${SV_INSTALL_ARCHIVE_DIR} COMPONENT ThirdPartyLibraries 22 | ) 23 | endif() 24 | if(SV_INSTALL_HEADERS) 25 | install(FILES ${HDRS} 26 | DESTINATION ${SV_INSTALL_INCLUDE_DIR}/thirdparty/sparse COMPONENT ThirdPartyHeaders 27 | ) 28 | endif() 29 | -------------------------------------------------------------------------------- /Code/ThirdParty/sparse/simvascular_sparse/Makefile: -------------------------------------------------------------------------------- 1 | # Hey emacs, this is a -*- makefile -*- 2 | 3 | # Copyright (c) 2015 Open Source Medical Software Corporation, 4 | # University of California, San Diego. 5 | # 6 | # All rights reserved. 7 | # 8 | # Permission is hereby granted, free of charge, to any person obtaining 9 | # a copy of this software and associated documentation files (the 10 | # "Software"), to deal in the Software without restriction, including 11 | # without limitation the rights to use, copy, modify, merge, publish, 12 | # distribute, sublicense, and/or sell copies of the Software, and to 13 | # permit persons to whom the Software is furnished to do so, subject 14 | # to the following conditions: 15 | # 16 | # The above copyright notice and this permission notice shall be included 17 | # in all copies or substantial portions of the Software. 18 | # 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 20 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 22 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 23 | # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 24 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 25 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | TOP=../../../../BuildWithMake 28 | 29 | include $(TOP)/include.mk 30 | 31 | CCFLAGS = $(GLOBAL_CCFLAGS) 32 | 33 | HDRS = spConfig.h spDefs.h spMatrix.h 34 | 35 | CSRCS = spAllocate.c spBuild.c spFactor.c spOutput.c spSolve.c spUtils.c spFortran.c 36 | 37 | TARGET_LIB_NAME = simvascular_thirdparty_sparse 38 | 39 | include $(TOP)/targetlib.mk 40 | 41 | 42 | -------------------------------------------------------------------------------- /Code/ThirdParty/sparse/simvascular_sparse/README.simvascular: -------------------------------------------------------------------------------- 1 | This contains sparse with few custom changes for use in simvascular. 2 | This package is distributed under its own license agreement. 3 | We include them here for convience, without modification, except for the notes below. 4 | 5 | Added Files 6 | ------------- 7 | CMakeList.txt 8 | -Support to build using CMake was added. 9 | 10 | -------------------------------------------------------------------------------- /Code/ThirdParty/sparse/simvascular_sparse/smpl-test.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Simple test (and example) for Sparse 3 | * 4 | * This test builds a simple ladder network and then performs an AC analysis 5 | * to compute is transfer characteristics versus frequency. 6 | * 7 | * Assumes Sparse is configured for complex matrices and that 8 | * spSEPARATED_COMPLEX_VECTORS is NO. 9 | */ 10 | 11 | #include 12 | #include 13 | #include "spMatrix.h" 14 | 15 | int 16 | main( int argc, char **argv ) 17 | { 18 | spMatrix A; 19 | struct spTemplate Stamp[3]; 20 | spError err; 21 | struct complex { double re; double im; } x[3], b[3]; 22 | double f, omega; 23 | 24 | /* Create and build the matrix. */ 25 | A = spCreate( 2, 1, &err ); 26 | if (err >= spFATAL) { 27 | spErrorMessage( A, stderr, argv[0] ); 28 | return 1; 29 | } 30 | spGetAdmittance( A, 1, 0, &Stamp[0] ); 31 | spGetAdmittance( A, 1, 2, &Stamp[1] ); 32 | spGetAdmittance( A, 2, 0, &Stamp[2] ); 33 | if (spErrorState( A ) >= spFATAL) { 34 | spErrorMessage( A, stderr, argv[0] ); 35 | return 1; 36 | } 37 | 38 | /* Drive the circuit at node 1. */ 39 | b[1].re = 1.0; b[1].im = 0.0; 40 | b[2].re = 0.0; b[2].im = 0.0; 41 | 42 | /* Perform AC analysis over a range of frequencies. */ 43 | for (f = 0.0; f <= 100000.0; f += 1000.0) { 44 | omega = 2.0 * M_PI * f; 45 | 46 | /* Load the matrix. */ 47 | spClear( A ); 48 | spADD_COMPLEX_QUAD( Stamp[0], 1/50.0, 1e-6*omega ); 49 | spADD_REAL_QUAD( Stamp[1], 1/200.0 ); 50 | spADD_COMPLEX_QUAD( Stamp[2], 1/50.0, 1e-6*omega ); 51 | 52 | /* Solve the matrix equations Ax = b for x. */ 53 | err = spFactor( A ); 54 | if (err >= spFATAL) { 55 | spErrorMessage( A, stderr, argv[0] ); 56 | return 1; 57 | } 58 | spSolve( A, (spREAL *)b, (spREAL *)x ); 59 | printf( "f = %f, h = %f\n", f, sqrt(x[2].re*x[2].re + x[2].im*x[2].im) ); 60 | } 61 | return 0; 62 | } 63 | 64 | 65 | -------------------------------------------------------------------------------- /Code/ThirdParty/zlib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #simvascular_third_party(zlib) 2 | -------------------------------------------------------------------------------- /Code/ThirdParty/zlib/Makefile: -------------------------------------------------------------------------------- 1 | # Hey emacs, this is a -*- makefile -*- 2 | 3 | # Copyright (c) 2015 Open Source Medical Software Corporation, 4 | # University of California, San Diego. 5 | # 6 | # All rights reserved. 7 | # 8 | # Permission is hereby granted, free of charge, to any person obtaining 9 | # a copy of this software and associated documentation files (the 10 | # "Software"), to deal in the Software without restriction, including 11 | # without limitation the rights to use, copy, modify, merge, publish, 12 | # distribute, sublicense, and/or sell copies of the Software, and to 13 | # permit persons to whom the Software is furnished to do so, subject 14 | # to the following conditions: 15 | # 16 | # The above copyright notice and this permission notice shall be included 17 | # in all copies or substantial portions of the Software. 18 | # 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 20 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 22 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 23 | # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 24 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 25 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | TOP=../../../BuildWithMake 28 | 29 | include $(TOP)/include.mk 30 | 31 | ZLIB_SUBDIRS = simvascular_zlib 32 | 33 | lib: createHeaderFile libsubdirs 34 | 35 | shared: 36 | 37 | libsubdirs: 38 | @for i in ${ZLIB_SUBDIRS}; do ( \ 39 | cd $$i; \ 40 | $(MAKE)) ; done 41 | 42 | clean: 43 | for i in ${ZLIB_SUBDIRS}; do ( \ 44 | cd $$i; \ 45 | $(MAKE) clean ) ; done 46 | 47 | veryclean: clean 48 | rm -f simvascular_zlib.h 49 | for i in ${ZLIB_SUBDIRS}; do ( \ 50 | cd $$i; \ 51 | $(MAKE) veryclean ) ; done 52 | 53 | createHeaderFile: 54 | rm -f simvascular_zlib.h 55 | @echo "#ifndef __simvascular_zlib_h" > simvascular_zlib.h 56 | @echo "#define __simvascular_zlib_h" >> simvascular_zlib.h 57 | @echo "#include " >> simvascular_zlib.h 58 | @echo "#endif" >> simvascular_zlib.h 59 | 60 | 61 | -------------------------------------------------------------------------------- /Code/ThirdParty/zlib/simvascular_zlib.h.in: -------------------------------------------------------------------------------- 1 | /*========================================================================= 2 | * 3 | * Copyright (c) 2014-2015 The Regents of the University of California. 4 | * All Rights Reserved. 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject 12 | * to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 18 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 19 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 20 | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER 21 | * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 24 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 25 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 26 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | * 29 | *=========================================================================*/ 30 | 31 | #ifndef __simvascular_zlib_h 32 | #define __simvascular_zlib_h 33 | 34 | /* Use the zlib library configured for SimVascular. */ 35 | #cmakedefine SV_USE_SYSTEM_ZLIB 36 | #ifdef SV_USE_SYSTEM_ZLIB 37 | # include 38 | #else 39 | # include 40 | #endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /Code/ThirdParty/zlib/simvascular_zlib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(SimVascularZLIB) 2 | 3 | include_directories(BEFORE ${SimVascularZLIB_SOURCE_DIR}) 4 | 5 | # source files for zlib 6 | set(SRCS 7 | adler32.c compress.c crc32.c deflate.c gzio.c inffast.c 8 | inflate.c inftrees.c trees.c uncompr.c zutil.c 9 | ) 10 | set(HDRS crc32.h deflate.h inffast.h inffixed.h inflate.h inftrees.h 11 | trees.h zconf.h zlib.h zutil.h) 12 | 13 | if(WIN32) 14 | if(BUILD_SHARED_LIBS) 15 | set(ZLIB_DLL 1) 16 | endif(BUILD_SHARED_LIBS) 17 | endif(WIN32) 18 | 19 | set(lib ${SV_LIB_THIRDPARTY_ZLIB_NAME}) 20 | if(SV_USE_THIRDPARTY_SHARED_LIBRARIES) 21 | add_library(${lib} SHARED ${SRCS}) 22 | else() 23 | add_library(${lib} STATIC ${SRCS}) 24 | endif() 25 | 26 | if(SV_INSTALL_LIBS) 27 | install(TARGETS ${lib} 28 | RUNTIME DESTINATION ${SV_INSTALL_RUNTIME_DIR} COMPONENT ThirdPartyExecutables 29 | LIBRARY DESTINATION ${SV_INSTALL_LIBRARY_DIR} COMPONENT ThirdPartyLibraries 30 | ARCHIVE DESTINATION ${SV_INSTALL_ARCHIVE_DIR} COMPONENT ThirdPartyLibraries 31 | ) 32 | endif() 33 | if(SV_INSTALL_HEADERS) 34 | install(FILES ${HDRS} 35 | DESTINATION ${SV_INSTALL_INCLUDE_DIR}/thirdparty/zlib COMPONENT ThirdPartyHeaders 36 | ) 37 | endif() 38 | -------------------------------------------------------------------------------- /Code/ThirdParty/zlib/simvascular_zlib/Makefile: -------------------------------------------------------------------------------- 1 | # Hey emacs, this is a -*- makefile -*- 2 | 3 | # Copyright (c) 2015 Open Source Medical Software Corporation, 4 | # University of California, San Diego. 5 | # 6 | # All rights reserved. 7 | # 8 | # Permission is hereby granted, free of charge, to any person obtaining 9 | # a copy of this software and associated documentation files (the 10 | # "Software"), to deal in the Software without restriction, including 11 | # without limitation the rights to use, copy, modify, merge, publish, 12 | # distribute, sublicense, and/or sell copies of the Software, and to 13 | # permit persons to whom the Software is furnished to do so, subject 14 | # to the following conditions: 15 | # 16 | # The above copyright notice and this permission notice shall be included 17 | # in all copies or substantial portions of the Software. 18 | # 19 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 20 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 21 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 22 | # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 23 | # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 24 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 25 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | TOP=../../../../BuildWithMake 28 | 29 | include $(TOP)/include.mk 30 | 31 | CCFLAGS = $(GLOBAL_CCFLAGS) 32 | 33 | HDRS = crc32.h deflate.h inffast.h inflate.h inftrees.h \ 34 | trees.h zlib.h zutil.h 35 | 36 | CSRCS = adler32.c compress.c crc32.c deflate.c gzio.c inffast.c \ 37 | inflate.c inftrees.c trees.c uncompr.c zutil.c 38 | 39 | TARGET_LIB_NAME = simvascular_thirdparty_zlib 40 | 41 | include $(TOP)/targetlib.mk 42 | 43 | 44 | -------------------------------------------------------------------------------- /Code/ThirdParty/zlib/simvascular_zlib/READ.simvascular: -------------------------------------------------------------------------------- 1 | This directory contains a subset of the zlib library (1.2.3) and 2 | some custom changes. 3 | 4 | We only include enough of the distribution to provide the functionalities 5 | required. 6 | 7 | We would like to thank the zlib team for distributing this library. 8 | http://www.zlib.net 9 | 10 | Added Files 11 | ----------- 12 | 13 | CMakeLists.txt 14 | -Support building with CMake. 15 | 16 | zlib.def 17 | -For MS Windows only: used to explicitly list the exports from dll builds. 18 | 19 | simvascular_zlib_mangle.h 20 | -Mangles symbols exported from the zlib library for use by simvascular. 21 | 22 | 23 | Changed Files 24 | ------------- 25 | You can search the code for "KITWARE_ZLIB_CHANGE" to find modifications 26 | vs the original zlib code 27 | 28 | zconf.h 29 | -Include simvascular_zlib_mangle.h (at the top) 30 | -Changed an #if 0 to #ifdef HAVE_UNISTD_H (near middle) 31 | -Suppress selected compiler warnings (at the bottom) -------------------------------------------------------------------------------- /Code/ThirdParty/zlib/simvascular_zlib/inffast.h: -------------------------------------------------------------------------------- 1 | /* inffast.h -- header to use inffast.c 2 | * Copyright (C) 1995-2003 Mark Adler 3 | * For conditions of distribution and use, see copyright notice in zlib.h 4 | */ 5 | 6 | /* WARNING: this file should *not* be used by applications. It is 7 | part of the implementation of the compression library and is 8 | subject to change. Applications should only use zlib.h. 9 | */ 10 | 11 | void inflate_fast OF((z_streamp strm, unsigned start)); 12 | -------------------------------------------------------------------------------- /Code/ThirdParty/zlib/simvascular_zlib/zlib.def: -------------------------------------------------------------------------------- 1 | LIBRARY 2 | ; zlib data compression library 3 | 4 | EXPORTS 5 | ; basic functions 6 | zlibVersion 7 | deflate 8 | deflateEnd 9 | inflate 10 | inflateEnd 11 | ; advanced functions 12 | deflateSetDictionary 13 | deflateCopy 14 | deflateReset 15 | deflateParams 16 | deflateBound 17 | deflatePrime 18 | inflateSetDictionary 19 | inflateSync 20 | inflateCopy 21 | inflateReset 22 | inflateBack 23 | inflateBackEnd 24 | zlibCompileFlags 25 | ; utility functions 26 | compress 27 | compress2 28 | compressBound 29 | uncompress 30 | gzopen 31 | gzdopen 32 | gzsetparams 33 | gzread 34 | gzwrite 35 | gzprintf 36 | gzputs 37 | gzgets 38 | gzputc 39 | gzgetc 40 | gzungetc 41 | gzflush 42 | gzseek 43 | gzrewind 44 | gztell 45 | gzeof 46 | gzclose 47 | gzerror 48 | gzclearerr 49 | ; checksum functions 50 | adler32 51 | crc32 52 | ; various hacks, don't look :) 53 | deflateInit_ 54 | deflateInit2_ 55 | inflateInit_ 56 | inflateInit2_ 57 | inflateBackInit_ 58 | inflateSyncPoint 59 | get_crc_table 60 | zError 61 | -------------------------------------------------------------------------------- /Code/ThirdParty/zlib/simvascular_zlib/ztest2978.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main() { return 0; } 3 | -------------------------------------------------------------------------------- /Distribution/OSX/Info.plist.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | SimVascular 9 | CFBundleGetInfoString 10 | @SV_FULL_VERSION@, Copyright (C) 2014 11 | CFBundleIdentifier 12 | org.simvascular.simvascular 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | @SV_FULL_VERSION@ 19 | CFBundleSignature 20 | simvascular 21 | CFBundleVersion 22 | @SV_FULL_VERSION@ 23 | CFBundleIconFile 24 | SimVascular.icns 25 | LSMinimumSystemVersion 26 | 10.5 27 | 28 | 29 | -------------------------------------------------------------------------------- /Distribution/OSX/cpmview.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Distribution/OSX/cpmview.icns -------------------------------------------------------------------------------- /Distribution/OSX/simvascular.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Distribution/OSX/simvascular.icns -------------------------------------------------------------------------------- /Distribution/OSX/simvascular.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -f 2 | #/bin/tcsh -f 3 | # limit stacksize unlimited 4 | 5 | if [ "$BASH_SOURCE" == "$0" ];then 6 | BUNDLE=`echo "$0" | sed -e 's/\/Contents\/MacOS\/.*//'` 7 | else 8 | BUNDLE=`echo "$BASH_SOURCE" | sed -e 's/\/Contents\/MacOS\/.*//'` 9 | fi 10 | 11 | RESOURCES=$BUNDLE/Contents/Resources 12 | 13 | echo "BUNDLE: $BUNDLE" 14 | echo "RESOURCES: $RESOURCES" 15 | 16 | sh $RESOURCES/simvascular -------------------------------------------------------------------------------- /Distribution/OSX/simvascular.sh.in: -------------------------------------------------------------------------------- 1 | #!/bin/bash -f 2 | #/bin/tcsh -f 3 | # limit stacksize unlimited 4 | 5 | export SOFTWARE_PLATFORM=@CLUSTER@ 6 | export COMPILER_VERSION=@COMPILER_VERSION@ 7 | export OPEN_SOFTWARE_BINARIES_TOPLEVEL=@OpenLibs_Bin_Directory@ 8 | export LICENSED_SOFTWARE_TOPLEVEL=@LicensedLibs_Bin_Directory@ 9 | export SV_HOME=@SimVascular_HOME@ 10 | export LES_LICENSE_SERVER= 11 | 12 | ############################################################ 13 | # YOU SHOULDN'T NEED TO CHANGE ANYTHING BELOW THIS LINE!! # 14 | ############################################################ 15 | 16 | # 3-D solver environment variables 17 | export FLOWSOLVER_CONFIG=@FLOWSOLVER_CONFIG@/ 18 | 19 | # simvascular addition 20 | export LD_LIBRARY_PATH=$SV_HOME/Lib:$LD_LIBRARY_PATH 21 | 22 | # MPICH2 additions 23 | export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH 24 | 25 | # intel compiler additions 26 | export LD_LIBRARY_PATH=@INTELRUNTIME_LIB_DIR@:$LD_LIBRARY_PATH 27 | 28 | @OUTBIN_DIR@/@FLOWSOLVER_EXE@ $* 29 | # run the executable 30 | case "$SV_BATCH_MODE" in 31 | "1") 32 | case "$*" in 33 | "") 34 | @OUTBIN_DIR@/@SV_EXE@ 35 | ;; 36 | *) 37 | @OUTBIN_DIR@/@SV_EXE@ $* 38 | ;; 39 | esac 40 | ;; 41 | *) 42 | @GDB@ @GDB_FLAGS@ @OUTBIN_DIR@/@SV_EXE@ @SimVascular_HOME@/Tcl/SimVascular_2.0/simvascular_startup.tcl $* 43 | ;; 44 | -------------------------------------------------------------------------------- /Distribution/windows/msi-banner.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Distribution/windows/msi-banner.bmp -------------------------------------------------------------------------------- /Distribution/windows/msi-banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Distribution/windows/msi-banner.jpg -------------------------------------------------------------------------------- /Distribution/windows/msi-dialog.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Distribution/windows/msi-dialog.bmp -------------------------------------------------------------------------------- /Distribution/windows/msi-dialog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Distribution/windows/msi-dialog.jpg -------------------------------------------------------------------------------- /Distribution/windows/registry-patch-notargets.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | @FRAGMENT_INJECTION_STRING@ 10 | 11 | 12 | -------------------------------------------------------------------------------- /Distribution/windows/registry-patch.xml.in: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | @FRAGMENT_INJECTION_STRING@ 10 | 11 | 12 | -------------------------------------------------------------------------------- /Distribution/windows/simvascular.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimVascular/svSolver/cf1e3b3b1cc9b02880a89a7953103045dec47191/Distribution/windows/simvascular.ico -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/CompileScripts/compile-cmake-vtk-generic.sh: -------------------------------------------------------------------------------- 1 | # 2 | # vtk 3 | # 4 | 5 | REPLACEME_SV_SPECIAL_COMPILER_SCRIPT 6 | 7 | export CC=REPLACEME_CC 8 | export CXX=REPLACEME_CXX 9 | 10 | rm -Rf REPLACEME_SV_TOP_BIN_DIR_VTK 11 | mkdir -p REPLACEME_SV_TOP_BIN_DIR_VTK 12 | chmod u+w,a+rx REPLACEME_SV_TOP_BIN_DIR_VTK 13 | 14 | rm -Rf REPLACEME_SV_TOP_BLD_DIR_VTK 15 | mkdir -p REPLACEME_SV_TOP_BLD_DIR_VTK 16 | cd REPLACEME_SV_TOP_BLD_DIR_VTK 17 | 18 | REPLACEME_SV_CMAKE_CMD -G REPLACEME_SV_CMAKE_GENERATOR \ 19 | -DCMAKE_INSTALL_PREFIX=REPLACEME_SV_TOP_BIN_DIR_VTK \ 20 | -DCMAKE_BUILD_TYPE=REPLACEME_SV_CMAKE_BUILD_TYPE \ 21 | -DBUILD_EXAMPLES=0 \ 22 | -DBUILD_SHARED_LIBS=0 \ 23 | -DVTK_Group_Imaging=0 \ 24 | -DVTK_Group_Qt=0 \ 25 | -DVTK_Group_Tk=0 \ 26 | -DVTK_Group_Rendering=0 \ 27 | -DVTK_WRAP_PYTHON=0 \ 28 | -DVTK_WRAP_TCL=0 \ 29 | -DVTK_QT_VERSION=5 \ 30 | -DModule_vtkTestingRendering=0 \ 31 | -DTCL_INCLUDE_PATH=REPLACEME_SV_TOP_BIN_DIR_TCL/include \ 32 | -DTCL_LIBRARY=REPLACEME_SV_TOP_BIN_DIR_TCL/lib/REPLACEME_SV_TCL_LIB_NAME \ 33 | -DTCL_TCLSH=REPLACEME_SV_TOP_BIN_DIR_TCL/bin/REPLACEME_SV_TCLSH_EXECUTABLE \ 34 | -DTK_INCLUDE_PATH=REPLACEME_SV_TOP_BIN_DIR_TK/include \ 35 | -DTK_LIBRARY=REPLACEME_SV_TOP_BIN_DIR_TK/lib/REPLACEME_SV_TK_LIB_NAME \ 36 | -DTK_WISH=REPLACEME_SV_TOP_BIN_DIR_TK/bin/REPLACEME_SV_WISH_EXECUTABLE \ 37 | -DTK_XLIB_PATH=REPLACEME_SV_TOP_BIN_DIR_TK/include \ 38 | REPLACEME_SV_TOP_SRC_DIR_VTK 39 | 40 | REPLACEME_SV_MAKE_CMD REPLACEME_SV_VTK_MAKE_FILENAME REPLACEME_SV_MAKE_BUILD_PARAMETERS 41 | 42 | REPLACEME_SV_MAKE_CMD REPLACEME_SV_VTK_MAKE_FILENAME REPLACEME_SV_MAKE_INSTALL_PARAMETERS 43 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/CompileScripts/compile-make-tcl-generic.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -f 2 | 3 | REPLACEME_SV_SPECIAL_COMPILER_SCRIPT 4 | 5 | export CC=REPLACEME_CC 6 | export CXX=REPLACEME_CXX 7 | 8 | CompileScripts/tcl-REPLACEME_SV_PLATFORM-generic.sh REPLACEME_SV_TCL_VERSION REPLACEME_SV_COMPILER_BIN_DIR 9 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/CompileScripts/tcl-linux-generic.sh: -------------------------------------------------------------------------------- 1 | #/bin/bash -f 2 | 3 | # Copyright (c) 2015 Open Source Medical Software Corporation. 4 | # All Rights Reserved. 5 | 6 | REPLACEME_SV_SPECIAL_COMPILER_SCRIPT 7 | 8 | export CC=gcc 9 | 10 | rm -Rf REPLACEME_SV_TOP_BIN_DIR_TCL 11 | mkdir -p REPLACEME_SV_TOP_BIN_DIR_TCL 12 | chmod u+w,a+rx REPLACEME_SV_TOP_BIN_DIR_TCL 13 | 14 | 15 | cd ../REPLACEME_SV_TCL_DIR/unix 16 | ./configure --prefix=REPLACEME_SV_TOP_BIN_DIR_TCL --enable-threads --disable-shared 17 | make -j8 clean 18 | make -j8 release 19 | make -j8 install 20 | 21 | cd ../.. 22 | cd REPLACEME_SV_TK_DIR/unix 23 | ./configure --prefix=REPLACEME_SV_TOP_BIN_DIR_TK \ 24 | --with-tcl=REPLACEME_SV_TOP_BIN_DIR_TCL/lib \ 25 | --enable-threads --disable-shared 26 | make -j8 clean 27 | make -j8 release 28 | make -j8 install 29 | make -j8 clean 30 | 31 | cd ../.. 32 | cd REPLACEME_SV_TCL_DIR/unix 33 | make -j8 clean 34 | 35 | cd ../../BuildHelpers 36 | 37 | cd ../tcllib-1.17 38 | REPLACEME_SV_TOP_BIN_DIR_TCL/bin/tclsh8.? installer.tcl 39 | cd ../BuildHelpers 40 | 41 | cd ../tklib-0.6 42 | REPLACEME_SV_TOP_BIN_DIR_TCL/bin/tclsh8.? installer.tcl 43 | cd ../BuildHelpers 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/CompileScripts/tcl-mingw64-generic.sh: -------------------------------------------------------------------------------- 1 | 2 | #/bin/bash -f 3 | 4 | # Copyright (c) 2015 Open Source Medical Software Corporation. 5 | # All Rights Reserved. 6 | 7 | export SV_TCL_VERSION=$1 8 | export SV_COMPILER_DIR=$2 9 | 10 | export SV_TOPLEVEL_SRCDIR=/usr/local/sv/ext/src 11 | export SV_TOPLEVEL_BINDIR=/usr/local/sv/ext/bin 12 | 13 | export SV_ARCH_DIR=x64 14 | 15 | export SV_TCL_INSTALL_SHORT_DIR_NAME=tcltk-$SV_TCL_VERSION 16 | export SV_TCL_INSTALL_FULL_DIR_NAME=${SV_TOPLEVEL_BINDIR}/${SV_COMPILER_DIR}/${SV_ARCH_DIR}/${SV_TCL_INSTALL_SHORT_DIR_NAME} 17 | 18 | mkdir -p $SV_TCL_INSTALL_FULL_DIR_NAME 19 | 20 | chmod a+rx $SV_TCL_INSTALL_FULL_DIR_NAME 21 | cd ../tcl-$SV_TCL_VERSION/win 22 | ./configure --prefix=${SV_TCL_INSTALL_FULL_DIR_NAME} --enable-threads --disable-shared --enable-64bit 23 | 24 | make clean 25 | make binaries libraries 26 | make install-binaries install-libraries 27 | 28 | chmod -R a+rx $SV_TCL_INSTALL_FULL_DIR_NAME 29 | cd ../.. 30 | cd tk-$SV_TCL_VERSION/win 31 | ./configure --prefix=${SV_TCL_INSTALL_FULL_DIR_NAME} \ 32 | --with-tcl=${SV_TCL_INSTALL_FULL_DIR_NAME}/lib \ 33 | --enable-threads --disable-shared --enable-64bit 34 | make clean 35 | make binaries libraries 36 | make install-binaries install-libraries 37 | make clean 38 | #chmod -R a+rx $SV_TCL_INSTALL_FULL_DIR_NAME 39 | cd ../.. 40 | cd tcl-$SV_TCL_VERSION/win 41 | make clean 42 | 43 | cd ../../BuildHelpers 44 | 45 | cd ../tcllib-1.17 46 | $SV_TCL_INSTALL_FULL_DIR_NAME/bin/tclsh8?.exe installer.tcl 47 | cd ../BuildHelpers 48 | #chmod -R a+rx $SV_TCL_INSTALL_FULL_DIR_NAME 49 | 50 | cd ../tklib-0.6 51 | $SV_TCL_INSTALL_FULL_DIR_NAME/bin/tclsh8?.exe installer.tcl 52 | cd ../BuildHelpers 53 | #chmod -R a+rx $SV_TCL_INSTALL_FULL_DIR_NAME 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/CompileScripts/tcl-windows-generic.sh: -------------------------------------------------------------------------------- 1 | #/bin/bash -f 2 | 3 | # Copyright (c) 2015 Open Source Medical Software Corporation. 4 | # All Rights Reserved. 5 | 6 | REPLACEME_SV_SPECIAL_COMPILER_SCRIPT 7 | 8 | export CC=CL 9 | 10 | rm -Rf REPLACEME_SV_TOP_BIN_DIR_TCL 11 | mkdir -p REPLACEME_SV_TOP_BIN_DIR_TCL 12 | chmod u+w,a+rx REPLACEME_SV_TOP_BIN_DIR_TCL 13 | 14 | 15 | cd ../REPLACEME_SV_TCL_DIR/win 16 | nmake -f makefile.vc MACHINE=AMD64 INSTALLDIR="REPLACEME_SV_TOP_BIN_DIR_TCL" OPTS=msvcrt,static,threads hose 17 | nmake -f makefile.vc MACHINE=AMD64 INSTALLDIR="REPLACEME_SV_TOP_BIN_DIR_TCL" OPTS=msvcrt,static,threads release 18 | nmake -f makefile.vc MACHINE=AMD64 INSTALLDIR="REPLACEME_SV_TOP_BIN_DIR_TCL" OPTS=msvcrt,static,threads install 19 | chmod -R a+rwx REPLACEME_SV_TOP_BIN_DIR_TCL 20 | cd ../.. 21 | cd REPLACEME_SV_TK_DIR/win 22 | nmake -f makefile.vc MACHINE=AMD64 TCLDIR="REPLACEME_SV_TOP_SRC_DIR_TCL" INSTALLDIR="REPLACEME_SV_TOP_BIN_DIR_TK" OPTS=msvcrt,static,threads hose 23 | nmake -f makefile.vc MACHINE=AMD64 TCLDIR="REPLACEME_SV_TOP_SRC_DIR_TCL" INSTALLDIR="REPLACEME_SV_TOP_BIN_DIR_TK" OPTS=msvcrt,static,threads release 24 | nmake -f makefile.vc MACHINE=AMD64 TCLDIR="REPLACEME_SV_TOP_SRC_DIR_TCL" INSTALLDIR="REPLACEME_SV_TOP_BIN_DIR_TK" OPTS=msvcrt,static,threads install 25 | chmod -R a+rwx REPLACEME_SV_TOP_BIN_DIR_TK 26 | nmake -f makefile.vc MACHINE=AMD64 TCLDIR="REPLACEME_SV_TOP_SRC_DIR_TCL" INSTALLDIR= OPTS=msvcrt,static,threads hose 27 | cd ../.. 28 | cd REPLACEME_SV_TCL_DIR/win 29 | nmake -f makefile.vc MACHINE=AMD64 INSTALLDIR="REPLACEME_SV_TOP_BIN_DIR_TCL" OPTS=msvcrt,static,threads hose 30 | 31 | cd ../../BuildHelpers 32 | 33 | export SV_TOPLEVEL_BINDIR_CYGWIN=`cygpath "REPLACEME_SV_TOP_BIN_DIR_TCL"` 34 | 35 | cd ../tcllib-1.17 36 | $SV_TOPLEVEL_BINDIR_CYGWIN/bin/REPLACEME_SV_TCLSH_EXECUTABLE installer.tcl 37 | cd ../BuildHelpers 38 | chmod -R a+rx $SV_TOPLEVEL_BINDIR_CYGWIN 39 | 40 | cd ../tklib-0.6 41 | $SV_TOPLEVEL_BINDIR_CYGWIN/bin/REPLACEME_SV_TCLSH_EXECUTABLE installer.tcl 42 | cd ../BuildHelpers 43 | chmod -R a+rx $SV_TOPLEVEL_BINDIR_CYGWIN 44 | 45 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/CygwinHelpers/clean-env.sh: -------------------------------------------------------------------------------- 1 | # visual studio 2010 defines 2 | export VS100COMNTOOLS= 3 | export VSINSTALLDIR= 4 | export VCINSTALLDIR= 5 | export FrameworkDir= 6 | export FrameworkVersion= 7 | export WindowsSdkDir= 8 | export Platform= 9 | export CommandPromptType= 10 | export INCLUDE= 11 | export LIB= 12 | export PATH=/usr/bin:/bin:/cygdrive/c/Windows/system32/reg:/cygdrive/c/Windows/system32:/cygdrive/c/Windows/SysWOW64 13 | export LIBPATH= 14 | # visual studio 2013 defines 15 | export VisualStudioVersion= 16 | export Framework40Version= 17 | export WindowsSdkDir= 18 | export ExtensionSdkDir= 19 | export WindowsSDK_ExecutablePath_x64= 20 | export VS120COMNTOOLS= 21 | export VSINSTALLDIR= 22 | export VCINSTALLDIR= 23 | export FrameworkDir= 24 | export FrameworkVersion= 25 | export Platform= 26 | export CommandPromptType= 27 | export INCLUDE= 28 | export LIB= 29 | export PATH=/usr/bin:/bin:/cygdrive/c/Windows/system32/reg:/cygdrive/c/Windows/system32:/cygdrive/c/Windows/SysWOW64 30 | export LIBPATH= 31 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/Patches/patch-source-tcltk-8.5.sh: -------------------------------------------------------------------------------- 1 | cp -f Patches/tk-8.5.18-win-ttkWinXPTheme.c ../tk-8.5.18/win/ttkWinXPTheme.c 2 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/Patches/patch-source-vtk-6.2.sh: -------------------------------------------------------------------------------- 1 | cp -f Patches/vtk-6.2.0-IO-Video-vtkWin32VideoSource.cxx.from-master-2015-07-20 ../vtk-6.2.0/IO/Video/vtkWin32VideoSource.cxx 2 | cp -f Patches/vtk-6.2.0-ThirdParty-hdf5-vtkhdf5-src-H5system.c ../vtk-6.2.0/ThirdParty/hdf5/vtkhdf5/src/H5system.c 3 | cp -f Patches/vtk-6.2.0-ThirdParty-hdf5-vtkhdf5-src-H5win32defs.h ../vtk-6.2.0/ThirdParty/hdf5/vtkhdf5/src/H5win32defs.h 4 | cp -f Patches/vtk-6.2.0-ThirdParty-TclTk-internals-tk8.5-tkWinPort.h ../vtk-6.2.0/ThirdParty/TclTk/internals/tk8.5/tkWinPort.h 5 | 6 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/Patches/patch-source-vtk-6.3.sh: -------------------------------------------------------------------------------- 1 | #cp Patches/vtk-6.2.0-IO-Video-vtkWin32VideoSource.cxx.from-master-2015-07-20 ../vtk-6.2.0/IO/Video/vtkWin32VideoSource.cxx 2 | cp -f Patches/vtk-6.3.0-ThirdParty-hdf5-vtkhdf5-src-H5system.c ../vtk-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5system.c 3 | cp -f Patches/vtk-6.3.0-ThirdParty-hdf5-vtkhdf5-src-H5win32defs.h ../vtk-6.3.0/ThirdParty/hdf5/vtkhdf5/src/H5win32defs.h 4 | cp -f Patches/vtk-6.3.0-ThirdParty-TclTk-internals-tk8.5-tkWinPort.h ../vtk-6.3.0/ThirdParty/TclTk/internals/tk8.5/tkWinPort.h 5 | 6 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/Scripts/create-archives-generic.sh: -------------------------------------------------------------------------------- 1 | BUILDDATE=`date +%F` 2 | mkdir -p tar_output 3 | 4 | #pushd REPLACEME_SV_TOPLEVEL_BINDIR/REPLACEME_SV_COMPILER_BIN_DIR/REPLACEME_SV_ARCH_DIR 5 | #REPLACEME_TAR -cvzf REPLACEME_SV_PLATFORM.REPLACEME_SV_COMPILER_BIN_DIR.REPLACEME_SV_ARCH_DIR.REPLACEME_SV_TCLTK_DIR-BUILD${BUILDDATE}.tar.gz REPLACEME_SV_TCLTK_DIR 6 | #popd 7 | #mv REPLACEME_SV_TOPLEVEL_BINDIR/REPLACEME_SV_COMPILER_BIN_DIR/REPLACEME_SV_ARCH_DIR/REPLACEME_SV_PLATFORM.REPLACEME_SV_COMPILER_BIN_DIR.REPLACEME_SV_ARCH_DIR.REPLACEME_SV_TCLTK_DIR-BUILD${BUILDDATE}.tar.gz tar_output 8 | 9 | pushd REPLACEME_SV_TOPLEVEL_BINDIR/REPLACEME_SV_COMPILER_BIN_DIR/REPLACEME_SV_ARCH_DIR 10 | REPLACEME_TAR -cvzf REPLACEME_SV_PLATFORM.REPLACEME_SV_COMPILER_BIN_DIR.REPLACEME_SV_ARCH_DIR.REPLACEME_SV_VTK_DIR-BUILD${BUILDDATE}.tar.gz REPLACEME_SV_VTK_DIR 11 | popd 12 | mv REPLACEME_SV_TOPLEVEL_BINDIR/REPLACEME_SV_COMPILER_BIN_DIR/REPLACEME_SV_ARCH_DIR/REPLACEME_SV_PLATFORM.REPLACEME_SV_COMPILER_BIN_DIR.REPLACEME_SV_ARCH_DIR.REPLACEME_SV_VTK_DIR-BUILD${BUILDDATE}.tar.gz tar_output 13 | 14 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/Scripts/superbuild-linux-gcc.sh: -------------------------------------------------------------------------------- 1 | # 2 | # unpack all of the source code 3 | # 4 | 5 | source Scripts/untar-unzip-source-all.sh 6 | mkdir -p tmp 7 | 8 | # 9 | # make build scripts 10 | # 11 | 12 | 13 | # tcl/tk 8.6 14 | #sed -f CompileScripts/sed-script-x64_linux-options-gcc.sh CompileScripts/tcl-linux-generic.sh > tmp/compile.make.tcl.gcc.sh 15 | #chmod a+rx ./tmp/compile.make.tcl.gcc.sh 16 | 17 | # vtk 18 | sed -f CompileScripts/sed-script-x64_linux-options-gcc.sh CompileScripts/compile-cmake-vtk-generic.sh > tmp/compile.cmake.vtk.gcc.sh 19 | chmod a+rx ./tmp/compile.cmake.vtk.gcc.sh 20 | 21 | # create script to create tar files 22 | sed -f CompileScripts/sed-script-x64_linux-options-gcc.sh Scripts/create-archives-generic.sh > tmp/create-archives-all.gcc.sh 23 | chmod a+rx ./tmp/create-archives-all.gcc.sh 24 | 25 | # create script to create zip files 26 | sed -f CompileScripts/sed-script-x64_linux-options-gcc.sh Scripts/tar-to-zip-all.sh > tmp/tar-to-zip-all.gcc.sh 27 | chmod a+rx ./tmp/tar-to-zip-all.gcc.sh 28 | 29 | # 30 | # compile code 31 | # 32 | 33 | # tcl/tk 8.6 34 | #./tmp/compile.make.tcl.gcc.sh >& ./tmp/stdout.tcl.txt 35 | 36 | # vtk 37 | ./tmp/compile.cmake.vtk.gcc.sh >& ./tmp/stdout.vtk.gcc.txt 38 | 39 | # 40 | # create tar files for distrution 41 | # 42 | 43 | ./tmp/create-archives-all.gcc.sh >& ./tmp/stdout.create-archives-all.gcc.txt 44 | 45 | ./tmp/tar-to-zip-all.gcc.sh >& ./tmp/stdout.tar-to-zip-all.gcc.txt 46 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/Scripts/superbuild-mac_osx-clang.sh: -------------------------------------------------------------------------------- 1 | # 2 | # unpack all of the source code 3 | # 4 | 5 | source Scripts/untar-unzip-source-all.sh 6 | mkdir -p tmp 7 | 8 | # 9 | # make build scripts 10 | # 11 | 12 | 13 | # tcl/tk 8.6 14 | #sed -f CompileScripts/sed-script-x64_mac_osx-options-clang.sh CompileScripts/tcl-mac_osx-generic.sh > tmp/compile.make.tcl.clang.sh 15 | #chmod a+rx ./tmp/compile.make.tcl.clang.sh 16 | 17 | # vtk 18 | sed -f CompileScripts/sed-script-x64_mac_osx-options-clang.sh CompileScripts/compile-cmake-vtk-generic.sh > tmp/compile.cmake.vtk.clang.sh 19 | chmod a+rx ./tmp/compile.cmake.vtk.clang.sh 20 | 21 | # create script to create tar files 22 | sed -f CompileScripts/sed-script-x64_mac_osx-options-clang.sh Scripts/create-archives-generic.sh > tmp/create-archives-mac_osx.clang.sh 23 | chmod a+rx ./tmp/create-archives-mac_osx.clang.sh 24 | 25 | # create script to create zip files 26 | sed -f CompileScripts/sed-script-x64_mac_osx-options-clang.sh Scripts/tar-to-zip-all.sh > tmp/tar-to-zip-all.clang.sh 27 | chmod a+rx ./tmp/tar-to-zip-all.clang.sh 28 | 29 | # 30 | # compile code 31 | # 32 | 33 | # tcl/tk 8.6 34 | #./tmp/compile.make.tcl.clang.sh >& ./tmp/stdout.tcl.txt 35 | 36 | # vtk 37 | ./tmp/compile.cmake.vtk.clang.sh >& ./tmp/stdout.vtk.clang.txt 38 | 39 | # 40 | # create tar files for distrution 41 | # 42 | 43 | ./tmp/create-archives-mac_osx.clang.sh >& ./tmp/stdout.create-archives-mac_osx.clang.txt 44 | 45 | ./tmp/tar-to-zip-all.clang.sh >& ./tmp/stdout.tar-to-zip-all.clang.txt 46 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/Scripts/superbuild-windows-cl.sh: -------------------------------------------------------------------------------- 1 | # 2 | # unpack all of the source code 3 | # 4 | 5 | source Scripts/untar-unzip-source-all.sh 6 | mkdir -p tmp 7 | 8 | # 9 | # make build scripts 10 | # 11 | 12 | # tcl/tk 8.6 13 | #sed -f CompileScripts/sed-script-x64_cygwin-options-cl.sh CompileScripts/tcl-windows-generic.sh > tmp/compile.make.tcl.cl.sh 14 | #chmod a+rx ./tmp/compile.make.tcl.cl.sh 15 | 16 | # vtk 17 | sed -f CompileScripts/sed-script-x64_cygwin-options-cl.sh CompileScripts/compile-cmake-vtk-generic.sh > tmp/compile.cmake.vtk.cl.sh 18 | chmod a+rx ./tmp/compile.cmake.vtk.cl.sh 19 | 20 | # create script to create tar files 21 | sed -f CompileScripts/sed-script-x64_cygwin-options-cl.sh Scripts/create-archives-generic.sh > tmp/create-archives-windows.cl.sh 22 | chmod a+rx ./tmp/create-archives-windows.cl.sh 23 | 24 | # create script to create zip files 25 | sed -f CompileScripts/sed-script-x64_cygwin-options-cl.sh Scripts/tar-to-zip-all.sh > tmp/tar-to-zip-all.windows.cl.sh 26 | chmod a+rx ./tmp/tar-to-zip-all.windows.cl.sh 27 | 28 | # 29 | # compile code 30 | # 31 | 32 | # tcl/tk 8.6 33 | #./tmp/compile.make.tcl.cl.sh >& ./tmp/stdout.tcl.txt 34 | 35 | # vtk 36 | ./tmp/compile.cmake.vtk.cl.sh >& ./tmp/stdout.vtk.cl.txt 37 | 38 | # 39 | # create tar files for distrution 40 | # 41 | 42 | ./tmp/create-archives-windows.cl.sh >& ./tmp/stdout.create-archives-windows.cl.txt 43 | 44 | ./tmp/tar-to-zip-all.windows.cl.sh >& ./tmp/stdout.tar-to-zip-all.windows.cl.txt 45 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/Scripts/tar-to-zip-all.sh: -------------------------------------------------------------------------------- 1 | BUILDDATE=`date +%F` 2 | 3 | rm -Rf zip_output 4 | mkdir -p zip_output 5 | 6 | rm -Rf zip_output_tmp 7 | mkdir -p zip_output_tmp 8 | 9 | #REPLACEME_TAR -C zip_output_tmp/ -xvzf tar_output/REPLACEME_SV_PLATFORM.REPLACEME_SV_COMPILER_BIN_DIR.REPLACEME_SV_ARCH_DIR.REPLACEME_SV_TCLTK_DIR-BUILD${BUILDDATE}.tar.gz 10 | #pushd zip_output_tmp 11 | #REPLACEME_ZIP -r ../zip_output/REPLACEME_SV_PLATFORM.REPLACEME_SV_COMPILER_BIN_DIR.REPLACEME_SV_ARCH_DIR.REPLACEME_SV_TCLTK_DIR-BUILD${BUILDDATE}.zip REPLACEME_SV_TCLTK_DIR 12 | #popd 13 | 14 | rm -Rf zip_output_tmp 15 | mkdir -p zip_output_tmp 16 | 17 | REPLACEME_TAR -C zip_output_tmp/ -xvzf tar_output/REPLACEME_SV_PLATFORM.REPLACEME_SV_COMPILER_BIN_DIR.REPLACEME_SV_ARCH_DIR.REPLACEME_SV_VTK_DIR-BUILD${BUILDDATE}.tar.gz 18 | pushd zip_output_tmp 19 | REPLACEME_ZIP -r ../zip_output/REPLACEME_SV_PLATFORM.REPLACEME_SV_COMPILER_BIN_DIR.REPLACEME_SV_ARCH_DIR.REPLACEME_SV_VTK_DIR-BUILD${BUILDDATE}.zip REPLACEME_SV_VTK_DIR 20 | popd 21 | 22 | rm -Rf zip_output_tmp 23 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/BuildHelpers/Scripts/untar-unzip-source-all.sh: -------------------------------------------------------------------------------- 1 | # 2 | # untar tcl/tk 3 | # 4 | 5 | #tar xvf Originals/tcltk/tcl8.5.18-src.tar.gz 6 | #tar xvf Originals/tcltk/tk8.5.18-src.tar.gz 7 | #tar xvf Originals/tcltk/tcl8.6.4-src.tar.gz 8 | #tar xvf Originals/tcltk/tk8.6.4-src.tar.gz 9 | #tar xvf Originals/tcltk/tcllib-1.17.tar.gz 10 | #tar xvf Originals/tcltk/tklib-0.6.tar.tgz 11 | 12 | # 13 | # move and rename tcl/tk 14 | # 15 | 16 | #mv tcl8.5.18 ../tcl-8.5.18 17 | #mv tk8.5.18 ../tk-8.5.18 18 | #mv tcl8.6.4 ../tcl-8.6.4 19 | #mv tk8.6.4 ../tk-8.6.4 20 | #mv tcllib-1.17 ../tcllib-1.17 21 | #mv tklib-0.6 ../tklib-0.6 22 | #source Patches/patch-source-tcltk-8.5.sh 23 | 24 | # 25 | # vtk 26 | # 27 | 28 | tar xvf Originals/vtk/VTK-6.2.0.tar.gz 29 | mv VTK-6.2.0 ../vtk-6.2.0 30 | source Patches/patch-source-vtk-6.2.sh 31 | #tar xvf Originals/vtk/VTK-6.3.0.tar.gz 32 | #mv VTK-6.3.0 ../vtk-6.3.0 33 | #source Patches/patch-source-vtk-6.3.sh 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/build-sv-externals-helper-wget-generic.sh: -------------------------------------------------------------------------------- 1 | export PARENT_URL=http://simvascular.stanford.edu/downloads/public/simvascular/externals/src/originals/ 2 | 3 | mkdir Originals 4 | pushd Originals 5 | 6 | #mkdir -p tcltk 7 | #pushd tcltk 8 | #wget $PARENT_URL/tcltk/tcl8.5.18-src.tar.gz 9 | #wget $PARENT_URL/tcltk/tcl8.6.4-src.tar.gz 10 | #wget $PARENT_URL/tcltk/tcllib-1.17.tar.gz 11 | #wget $PARENT_URL/tcltk/tk8.5.18-src.tar.gz 12 | #wget $PARENT_URL/tcltk/tk8.6.4-src.tar.gz 13 | #wget $PARENT_URL/tcltk/tklib-0.6.tar.tgz 14 | #popd 15 | 16 | mkdir -p vtk 17 | pushd vtk 18 | wget $PARENT_URL/vtk/VTK-6.2.0.tar.gz 19 | #wget $PARENT_URL/vtk/VTK-6.3.0.tar.gz 20 | popd 21 | 22 | popd 23 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/build-sv-externals-linux.sh: -------------------------------------------------------------------------------- 1 | EXTERNALS_TOP=/usr/local/svsolver/externals 2 | EXTERNALS_BUILD_TOP=$EXTERNALS_TOP/build 3 | 4 | # 5 | # must have write permissions to dirs! 6 | # 7 | 8 | sudo mkdir -p /usr/local/package 9 | sudo chmod a+rwx /usr/local/package 10 | 11 | sudo mkdir -p /usr/local/svsolver 12 | sudo chmod a+rwx /usr/local/svsolver 13 | 14 | # 15 | # initial setup 16 | # 17 | 18 | echo "Deleting previous build dir ($EXTERNALS_BUILD_TOP)" 19 | rm -Rf $EXTERNALS_BUILD_TOP 20 | mkdir $EXTERNALS_BUILD_TOP 21 | 22 | echo "Deleting previous src+bin dir ($EXTERNALS_TOP)" 23 | rm -Rf $EXTERNALS_TOP 24 | mkdir -p $EXTERNALS_TOP 25 | mkdir -p $EXTERNALS_TOP/src 26 | cp -Rf BuildHelpers $EXTERNALS_TOP/src 27 | 28 | # 29 | # wget the original src files 30 | # 31 | 32 | source build-sv-externals-helper-wget-generic.sh 33 | mv Originals $EXTERNALS_TOP/src/BuildHelpers 34 | 35 | # 36 | # let's do it 37 | # 38 | 39 | pushd $EXTERNALS_TOP/src/BuildHelpers 40 | 41 | echo "Starting build in ($EXTERNALS_TOP)..." 42 | echo " note: see logs in stdout.superbuild.txt, tmp/stdout*, etc." 43 | source Scripts/superbuild-linux-gcc.sh >& stdout.superbuild.txt 44 | 45 | popd 46 | 47 | 48 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/build-sv-externals-mac_osx.sh: -------------------------------------------------------------------------------- 1 | EXTERNALS_TOP=/usr/local/svsolver/externals 2 | EXTERNALS_BUILD_TOP=$EXTERNALS_TOP/build 3 | 4 | # 5 | # must have write permissions to dirs! 6 | # 7 | 8 | sudo mkdir -p /usr/local/package 9 | sudo chmod a+rwx /usr/local/package 10 | 11 | sudo mkdir -p /usr/local/svsolver 12 | sudo chmod a+rwx /usr/local/svsolver 13 | 14 | # 15 | # initial setup 16 | # 17 | 18 | echo "Deleting previous build dir ($EXTERNALS_BUILD_TOP)" 19 | rm -Rf $EXTERNALS_BUILD_TOP 20 | mkdir $EXTERNALS_BUILD_TOP 21 | 22 | echo "Deleting previous src+bin dir ($EXTERNALS_TOP)" 23 | rm -Rf $EXTERNALS_TOP 24 | mkdir -p $EXTERNALS_TOP 25 | mkdir -p $EXTERNALS_TOP/src 26 | cp -Rf BuildHelpers $EXTERNALS_TOP/src 27 | 28 | # 29 | # wget the original src files 30 | # 31 | 32 | source build-sv-externals-helper-wget-generic.sh 33 | mv Originals $EXTERNALS_TOP/src/BuildHelpers 34 | 35 | # 36 | # let's do it 37 | # 38 | 39 | pushd $EXTERNALS_TOP/src/BuildHelpers 40 | 41 | echo "Starting build in ($EXTERNALS_TOP)..." 42 | echo " note: see logs in stdout.superbuild.txt, tmp/stdout*, etc." 43 | source Scripts/superbuild-mac_osx-clang.sh >& stdout.superbuild.txt 44 | 45 | popd 46 | 47 | 48 | -------------------------------------------------------------------------------- /Externals/Make/2017.01/build-sv-externals-windows.sh: -------------------------------------------------------------------------------- 1 | EXTERNALS_TOP=/usr/local/svsolver/externals 2 | EXTERNALS_BUILD_TOP=$EXTENALS_TOP 3 | #EXTERNALS_BUILD_TOP=/cygdrive/c/svsolver 4 | 5 | # 6 | # initial setup 7 | # 8 | 9 | echo "Deleting previous build dir ($EXTERNALS_BUILD_TOP)" 10 | rm -Rf $EXTERNALS_BUILD_TOP 11 | mkdir $EXTERNALS_BUILD_TOP 12 | 13 | echo "Deleting previous src+bin dir ($EXTERNALS_TOP)" 14 | rm -Rf $EXTERNALS_TOP 15 | mkdir -p $EXTERNALS_TOP 16 | mkdir -p $EXTERNALS_TOP/src 17 | cp -Rf BuildHelpers $EXTERNALS_TOP/src 18 | 19 | # 20 | # wget the original src files 21 | # 22 | 23 | source build-sv-externals-helper-wget-generic.sh 24 | mv Originals $EXTERNALS_TOP/src/BuildHelpers 25 | 26 | # 27 | # let's do it 28 | # 29 | 30 | pushd $EXTERNALS_TOP/src/BuildHelpers 31 | 32 | echo "Starting build in ($EXTERNALS_TOP)..." 33 | echo " note: see logs in stdout.superbuild.txt, tmp/stdout*, etc." 34 | echo " note: see individual build logs as well" 35 | source Scripts/superbuild-windows-cl.sh >& stdout.superbuild.txt 36 | 37 | popd 38 | 39 | 40 | -------------------------------------------------------------------------------- /Externals/Make/2019.06/BuildHelpers/CompileScripts/compile-cmake-vtk-generic.sh: -------------------------------------------------------------------------------- 1 | # 2 | # vtk 3 | # 4 | 5 | REPLACEME_SV_SPECIAL_COMPILER_SCRIPT 6 | 7 | export CC=REPLACEME_CC 8 | export CXX=REPLACEME_CXX 9 | 10 | rm -Rf REPLACEME_SV_TOP_BIN_DIR_VTK 11 | mkdir -p REPLACEME_SV_TOP_BIN_DIR_VTK 12 | chmod u+w,a+rx REPLACEME_SV_TOP_BIN_DIR_VTK 13 | 14 | rm -Rf REPLACEME_SV_TOP_BLD_DIR_VTK 15 | mkdir -p REPLACEME_SV_TOP_BLD_DIR_VTK 16 | cd REPLACEME_SV_TOP_BLD_DIR_VTK 17 | 18 | REPLACEME_SV_CMAKE_CMD -G REPLACEME_SV_CMAKE_GENERATOR \ 19 | -DSV_EXTERNALS_TOPLEVEL_BIN_DIR:PATH=REPLACEME_SV_FULLPATH_BINDIR \ 20 | -DCMAKE_INSTALL_PREFIX=REPLACEME_SV_TOP_BIN_DIR_VTK \ 21 | -DCMAKE_BUILD_TYPE=REPLACEME_SV_CMAKE_BUILD_TYPE \ 22 | -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ 23 | -DBUILD_EXAMPLES=0 \ 24 | -DBUILD_SHARED_LIBS=0 \ 25 | -DVTK_Group_Imaging=0 \ 26 | -DVTK_Group_Qt=0 \ 27 | -DVTK_Group_Tk=0 \ 28 | -DVTK_Group_Rendering=0 \ 29 | -DVTK_WRAP_PYTHON=0 \ 30 | -DVTK_WRAP_TCL=0 \ 31 | -DVTK_QT_VERSION=5 \ 32 | -DModule_vtkTestingRendering=0 \ 33 | REPLACEME_SV_TOP_SRC_DIR_VTK 34 | 35 | REPLACEME_SV_MAKE_CMD REPLACEME_SV_VTK_MAKE_FILENAME REPLACEME_SV_MAKE_BUILD_PARAMETERS 36 | 37 | REPLACEME_SV_MAKE_CMD REPLACEME_SV_VTK_MAKE_FILENAME REPLACEME_SV_MAKE_INSTALL_PARAMETERS 38 | 39 | REPLACEME_SV_SPECIAL_COMPILER_END_SCRIPT 40 | -------------------------------------------------------------------------------- /Externals/Make/2019.06/BuildHelpers/CompileScripts/create-toplevel-build-dir.sh: -------------------------------------------------------------------------------- 1 | 2 | mkdir -p REPLACEME_SV_FULLPATH_BUILDDIR 3 | chmod u+w,a+rx REPLACEME_SV_FULLPATH_BUILDDIR 4 | 5 | mkdir -p REPLACEME_SV_FULLPATH_BINDIR 6 | chmod u+w,a+rx REPLACEME_SV_FULLPATH_BINDIR 7 | -------------------------------------------------------------------------------- /Externals/Make/2019.06/BuildHelpers/Scripts/build-sv-externals-helper-wget-generic.sh: -------------------------------------------------------------------------------- 1 | export PARENT_URL=http://simvascular.stanford.edu/downloads/public/svsolver/externals/2019.06/src/originals/ 2 | 3 | mkdir Originals 4 | pushd Originals 5 | 6 | # vtk 7 | if [[ $SV_SUPER_OPTIONS == *WGET_VTK* ]]; then 8 | echo "WGET_VTK" 9 | rm -Rf vtk 10 | mkdir -p vtk 11 | pushd vtk 12 | wget $PARENT_URL/vtk/VTK-8.1.1.tar.gz 13 | popd 14 | fi 15 | 16 | popd 17 | -------------------------------------------------------------------------------- /Externals/Make/2019.06/BuildHelpers/Scripts/check-for-c-opensource-in-config-cmake.tcl: -------------------------------------------------------------------------------- 1 | proc file_find_multiple {dir wildcards args} { 2 | 3 | if {[llength $args] == 0} { 4 | set rtnme {} 5 | } else { 6 | upvar rtnme rtnme 7 | } 8 | 9 | foreach j $dir { 10 | foreach wildcard $wildcards { 11 | set files [glob -nocomplain [file join $j $wildcard]] 12 | foreach i $files { 13 | #puts "found file: $i" 14 | lappend rtnme $i 15 | } 16 | } 17 | set files [glob -nocomplain [file join $j *]] 18 | foreach i $files { 19 | if {[file isdirectory $i] == 1} { 20 | file_find_multiple $i $wildcards 1 21 | } 22 | } 23 | } 24 | return [lsort -unique $rtnme] 25 | 26 | } 27 | 28 | #set replaceme C:/cygwin64/usr/local/sv/ext/2019.06/release/gl2/bin/msvc/19.0/x64/release 29 | set replaceme C:/OpenSource 30 | 31 | set all_files {} 32 | 33 | #set all_files [file_find_multiple bin [list *Config*cmake *Targets*cmake *config*cmake]] 34 | set all_files [file_find_multiple bin [list *.cmake]] 35 | 36 | puts "$all_files" 37 | 38 | puts "C:/OpenSource" 39 | foreach i $all_files { 40 | set count {} 41 | catch {set count [exec grep -c C:/OpenSource $i]} 42 | if {$count != ""} { 43 | puts "found in ($i) (count: $count)" 44 | } 45 | } 46 | 47 | puts "C:/cygwin64" 48 | 49 | foreach i $all_files { 50 | set count {} 51 | catch {set count [exec grep -c C:/cygwin64 $i]} 52 | if {$count != ""} { 53 | puts "found in ($i) (count: $count)" 54 | } 55 | } 56 | 57 | -------------------------------------------------------------------------------- /Externals/Make/2019.06/BuildHelpers/Scripts/create-archives-generic.sh: -------------------------------------------------------------------------------- 1 | BUILDDATE=`date +%F` 2 | 3 | SV_TAR_FILE_PREFIX=REPLACEME_SV_TAR_FILE_PREFIX.${BUILDDATE} 4 | 5 | # vtk 6 | if [[ $SV_SUPER_OPTIONS == *ARCHIVE_VTK* ]]; then 7 | echo "ARCHIVE_VTK" 8 | pushd REPLACEME_SV_FULLPATH_BINDIR 9 | REPLACEME_TAR -cvzf $SV_TAR_FILE_PREFIX.REPLACEME_SV_VTK_DIR.tar.gz REPLACEME_SV_VTK_DIR 10 | popd 11 | mv REPLACEME_SV_FULLPATH_BINDIR/$SV_TAR_FILE_PREFIX.REPLACEME_SV_VTK_DIR.tar.gz tar_output 12 | fi 13 | 14 | pushd tar_output 15 | tclsh ../Scripts/remove-all-dashes-in-name.tcl 16 | popd 17 | -------------------------------------------------------------------------------- /Externals/Make/2019.06/BuildHelpers/Scripts/remove-all-dashes-in-name.tcl: -------------------------------------------------------------------------------- 1 | foreach fn [glob *.tar.gz] { 2 | set newname [regsub -all -- - $fn .] 3 | exec mv $fn $newname 4 | } 5 | -------------------------------------------------------------------------------- /Externals/Make/2019.06/BuildHelpers/Scripts/replace-explicit-paths-in-config-cmake.tcl: -------------------------------------------------------------------------------- 1 | proc file_find_multiple {dir wildcards args} { 2 | 3 | if {[llength $args] == 0} { 4 | set rtnme {} 5 | } else { 6 | upvar rtnme rtnme 7 | } 8 | 9 | foreach j $dir { 10 | foreach wildcard $wildcards { 11 | set files [glob -nocomplain [file join $j $wildcard]] 12 | foreach i $files { 13 | #puts "found file: $i" 14 | lappend rtnme $i 15 | } 16 | } 17 | set files [glob -nocomplain [file join $j *]] 18 | foreach i $files { 19 | if {[file isdirectory $i] == 1} { 20 | file_find_multiple $i $wildcards 1 21 | } 22 | } 23 | } 24 | return [lsort -unique $rtnme] 25 | 26 | } 27 | 28 | set toplevel_bin_dir REPLACEME_SV_FULLPATH_BINDIR 29 | 30 | set olddir [pwd] 31 | puts "$olddir" 32 | if {$tcl_platform(os) == "CYGWIN_NT-10.0"} { 33 | set posixpath [exec cygpath -u $toplevel_bin_dir] 34 | cd $posixpath 35 | } else { 36 | cd $toplevel_bin_dir 37 | } 38 | 39 | set all_files {} 40 | 41 | #set all_files [file_find_multiple * [list *Config*cmake *Targets*cmake *config*cmake]] 42 | set all_files [file_find_multiple * [list *.cmake]] 43 | 44 | puts "number of cmake config files to check for explicit paths: [llength $all_files]" 45 | 46 | foreach i $all_files { 47 | set count {} 48 | catch {set count [exec grep -c $toplevel_bin_dir $i]} 49 | if {$count != ""} { 50 | puts "working on ($i) (count: $count)" 51 | if [catch {exec sed s+$toplevel_bin_dir+\${SV_EXTERNALS_TOPLEVEL_BIN_DIR}+g $i > $i.new} msg] { 52 | puts "error on ($i): $msg" 53 | } else { 54 | catch {exec mv $i $i.org} 55 | catch {exec mv $i.new $i} 56 | } 57 | } 58 | } 59 | 60 | cd $olddir 61 | 62 | -------------------------------------------------------------------------------- /Externals/Make/2019.06/BuildHelpers/Scripts/tar-to-zip-all.sh: -------------------------------------------------------------------------------- 1 | BUILDDATE=`date +%F` 2 | 3 | SV_TAR_FILE_PREFIX=REPLACEME_SV_TAR_FILE_PREFIX.${BUILDDATE} 4 | SV_ZIP_FILE_PREFIX=REPLACEME_SV_TAR_FILE_PREFIX.${BUILDDATE} 5 | 6 | rm -Rf zip_output_tmp 7 | mkdir -p zip_output_tmp 8 | 9 | # vtk 10 | if [[ $SV_SUPER_OPTIONS == *ZIP_VTK* ]]; then 11 | echo "ZIP_VTK" 12 | REPLACEME_TAR -C zip_output_tmp/ -xvzf tar_output/$SV_TAR_FILE_PREFIX.REPLACEME_SV_VTK_DIR.tar.gz 13 | pushd zip_output_tmp 14 | REPLACEME_ZIP -r ../zip_output/$SV_ZIP_FILE_PREFIX.REPLACEME_SV_VTK_DIR.zip REPLACEME_SV_VTK_DIR 15 | popd 16 | fi 17 | 18 | rm -Rf zip_output_tmp 19 | -------------------------------------------------------------------------------- /Externals/Make/2019.06/BuildHelpers/Scripts/untar-unzip-source-all.sh: -------------------------------------------------------------------------------- 1 | 2 | # vtk 3 | if [[ $SV_SUPER_OPTIONS == *UNTAR_VTK* ]]; then 4 | echo "UNTAR_VTK" 5 | rm -Rf ../vtk-8.1.1 6 | tar xf Originals/vtk/VTK-8.1.1.tar.gz 7 | mv VTK-8.1.1 ../vtk-8.1.1 8 | pushd ../vtk-8.1.1 9 | patch -p1 < ../BuildHelpers/Patches/2019.06/patch-vtk-8.1.1-windows.patch 10 | patch -p1 < ../BuildHelpers/Patches/2019.06/patch-vtk-8.1.1-tk-windows.patch 11 | popd 12 | fi 13 | -------------------------------------------------------------------------------- /Externals/Make/2019.06/build-sv-externals-mac_osx.sh: -------------------------------------------------------------------------------- 1 | #EXTERNALS_TOP=/usr/local/svsolver/ext/2019.06/release/gl1 2 | EXTERNALS_TOP=/usr/local/svsolver/ext/2019.06/release/gl2 3 | EXTERNALS_BUILD_TOP=$EXTERNALS_TOP/build 4 | 5 | SV_EXTERN_OS=mac_osx 6 | 7 | # 8 | # must have write permissions to dirs! 9 | # 10 | 11 | sudo mkdir -p /usr/local/svsolver 12 | sudo chmod a+rwx /usr/local/svsolver 13 | 14 | # 15 | # initial setup 16 | # 17 | 18 | echo "Deleting previous build dir ($EXTERNALS_BUILD_TOP)" 19 | sudo rm -Rf $EXTERNALS_BUILD_TOP 20 | sudo mkdir -p $EXTERNALS_BUILD_TOP 21 | 22 | echo "Deleting previous src+bin dir ($EXTERNALS_TOP)" 23 | sudo rm -Rf $EXTERNALS_TOP 24 | 25 | sudo mkdir -p /usr/local/svsolver 26 | sudo chmod a+rwx /usr/local/svsolver 27 | sudo chown -R $USER /usr/local/svsolver 28 | 29 | sudo mkdir -p $EXTERNALS_TOP 30 | sudo chown -R $USER $EXTERNALS_TOP 31 | sudo chgrp -R $USER $EXTERNALS_TOP 32 | mkdir -p $EXTERNALS_TOP/src 33 | 34 | cp -Rf BuildHelpers $EXTERNALS_TOP/src 35 | cp -Rf ../../Patches $EXTERNALS_TOP/src/BuildHelpers 36 | 37 | # 38 | # let's do it 39 | # 40 | 41 | pushd $EXTERNALS_TOP/src/BuildHelpers 42 | 43 | echo "Starting build in ($EXTERNALS_TOP)..." 44 | echo " note: see logs in stdout.superbuild.txt, tmp/stdout*, etc." 45 | source Scripts/superbuild-mac_osx-clang.sh >& stdout.superbuild.txt 46 | 47 | popd 48 | 49 | 50 | -------------------------------------------------------------------------------- /Externals/Make/2019.06/build-sv-externals-windows.sh: -------------------------------------------------------------------------------- 1 | #EXTERNALS_TOP=/usr/local/svsolver/ext/2019.06/release/gl1 2 | #EXTERNALS_BUILD_TOP=/cygdrive/c/svsolver-ext-2019-06-gl1 3 | EXTERNALS_TOP=/usr/local/svsolver/ext/2019.06/release/gl2 4 | EXTERNALS_BUILD_TOP=/cygdrive/c/svsolver-ext-2019-06-gl2 5 | 6 | SV_EXTERN_OS=windows 7 | 8 | # 9 | # must have write permissions to dirs! 10 | # 11 | 12 | # 13 | # initial setup 14 | # 15 | 16 | echo "Deleting previous build dir ($EXTERNALS_BUILD_TOP)" 17 | rm -Rf $EXTERNALS_BUILD_TOP 18 | mkdir -p $EXTERNALS_BUILD_TOP 19 | 20 | echo "Deleting previous src+bin dir ($EXTERNALS_TOP)" 21 | rm -Rf $EXTERNALS_TOP 22 | 23 | mkdir -p /usr/local/svsolver 24 | chmod a+rwx /usr/local/svsolver 25 | 26 | mkdir -p $EXTERNALS_TOP 27 | mkdir -p $EXTERNALS_TOP/src 28 | cp -Rf BuildHelpers $EXTERNALS_TOP/src 29 | cp -Rf ../../Patches $EXTERNALS_TOP/src/BuildHelpers 30 | 31 | # 32 | # let's do it 33 | # 34 | 35 | pushd $EXTERNALS_TOP/src/BuildHelpers 36 | 37 | echo "Starting build in ($EXTERNALS_TOP)..." 38 | echo " note: see logs in stdout.superbuild.txt, tmp/stdout*, etc." 39 | echo " note: see individual build logs as well" 40 | source Scripts/superbuild-windows-cl.sh >& stdout.superbuild.txt 41 | 42 | popd 43 | -------------------------------------------------------------------------------- /Externals/Patches/2019.06/patch-vtk-8.1.1-windows.patch: -------------------------------------------------------------------------------- 1 | diff -aur --new-file -x .git vtk-8.1.1-original/Rendering/Tk/CMakeLists.txt vtk-8.1.1-patched/Rendering/Tk/CMakeLists.txt 2 | --- vtk-8.1.1-original/Rendering/Tk/CMakeLists.txt 2018-05-11 07:34:24.000000000 -0700 3 | +++ vtk-8.1.1-patched/Rendering/Tk/CMakeLists.txt 2018-06-16 13:14:03.056491500 -0700 4 | @@ -87,7 +87,7 @@ 5 | 6 | vtk_add_library(vtkRenderingTkTCL ${Module_TCL_SRCS}) 7 | 8 | - vtk_module_link_libraries(vtkRenderingTkTCL 9 | + vtk_module_link_libraries(vtkRenderingTkTCL vtkRendering${VTK_RENDERING_BACKEND} 10 | vtkRenderingCore vtkCommonDataModel vtkCommonCoreTCL 11 | vtkInteractionImage 12 | ${Module_TCL_LIBS}) 13 | @@ -126,7 +126,7 @@ 14 | ${X11_LIBRARIES}) 15 | endif() 16 | 17 | - vtk_module_link_libraries(vtkRenderingPythonTkWidgets 18 | + vtk_module_link_libraries(vtkRenderingPythonTkWidgets vtkRendering${VTK_RENDERING_BACKEND} 19 | vtkRenderingCore vtkCommonDataModel 20 | vtkInteractionImage 21 | ${Module_PYTHON_LIBS}) 22 | -------------------------------------------------------------------------------- /Licenses/ExternalOpenSourcePackages/README-external-licenses-lgpl.txt: -------------------------------------------------------------------------------- 1 | 1. NSPCG (LGPL) 2 | 3 | *************************************************************** 4 | *************************************************************** 5 | NSPCG (as of version 2007) 6 | *************************************************************** 7 | *************************************************************** 8 | 9 | Email correspondence with David Kincaid confirmed LGPL 10 | license (March 12, 2007). 11 | -------------------------------------------------------------------------------- /Licenses/LesLib/README-LESLIB.txt: -------------------------------------------------------------------------------- 1 | Put your LesLib license file in this directory. 2 | It should be named "license.dat" 3 | 4 | -------------------------------------------------------------------------------- /travis/travis_build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | if $WITH_CMAKE; then 6 | MAKE="make --jobs=$NUM_THREADS --keep-going" 7 | mkdir -p $BUILD_DIR 8 | cd $BUILD_DIR 9 | SV_EXTERNALS_ARGS="" 10 | if $BUILD_VTK; then 11 | SV_EXTERNALS_ARGS="-DSV_EXTERNALS_DOWNLOAD_VTK:BOOL=OFF" 12 | fi 13 | export SV_EXTERNALS_ARGS=$SV_EXTERNALS_ARGS 14 | source $SCRIPTS/travis_cmake_config.sh 15 | pushd $BUILD_DIR 16 | $MAKE 17 | popd 18 | fi 19 | 20 | -------------------------------------------------------------------------------- /travis/travis_cmake_config.sh: -------------------------------------------------------------------------------- 1 | #compilers 2 | if [[ "$TRAVIS_OS_NAME" == "linux" ]] 3 | then 4 | export CC="gcc" 5 | export CXX="g++" 6 | elif [[ "$TRAVIS_OS_NAME" == "osx" ]] 7 | then 8 | export CC="clang" 9 | export CXX="clang++" 10 | fi 11 | 12 | pushd $BUILD_DIR 13 | 14 | echo SV_EXTERNALS_ARGS: $SV_EXTERNALS_ARGS 15 | #cmake 16 | export REPLACEME_SV_CMAKE_CMD="cmake" 17 | export REPLACEME_SV_CMAKE_GENERATOR="Unix Makefiles" 18 | export REPLACEME_SV_CMAKE_BUILD_TYPE="RelWithDebInfo" 19 | export REPLACEME_SV_MAKE_CMD="make -j8" 20 | export REPLACEME_SV_TOP_SRC_DIR_SV=$SV_TOP_DIR 21 | 22 | "$REPLACEME_SV_CMAKE_CMD" \ 23 | \ 24 | -G "$REPLACEME_SV_CMAKE_GENERATOR" \ 25 | \ 26 | -DCMAKE_BUILD_TYPE="$REPLACEME_SV_CMAKE_BUILD_TYPE" \ 27 | -DBUILD_SHARED_LIBS=OFF \ 28 | -DBUILD_TESTING=OFF \ 29 | -DSV_EXTERNALS_ADDITIONAL_CMAKE_ARGS="$SV_EXTERNALS_ARGS" \ 30 | \ 31 | "$REPLACEME_SV_TOP_SRC_DIR_SV" 32 | 33 | popd 34 | --------------------------------------------------------------------------------