美文网首页
始于FMTT——解压、编译

始于FMTT——解压、编译

作者: 奶茶多加冰 | 来源:发表于2019-12-17 20:59 被阅读0次

    1.FMTT——Nick Rawlinson编写的远震层析成像软件包,点击 下载
    2.解压,生成以下6个文件:
    bin/,compileall,docs/,example1/, example2/, source/
    3.选择编译器:
    (a) 默认编译器为ifor(学生可免费下载)
    (b)修改compileall的第22行为自己常用的编译器:F90=ifor
    (c)进入source/aktimes/makefile,修改第5行为常用编译器:FF=ifor
    4.编译
    (a)进入compileall对82行、83行作如下修改

    make remodl &&
    make setbrn 
    rm *.o
    

    (b)运行compileall:

    ksh  ./compileall
    
    Compilation of fm3dt complete
     
    Compilation of gmtslicet complete
     
    Compilation of grid3dtg complete
     
    Compilation of itimes complete
     
    Compilation of misfitt complete
     
    Compilation of residualst complete
     
    Compilation of resplott complete
     
    Compilation of subinv complete
     
    Compilation of syntht complete
    ifort -c aktsurf.f
    ifort -c libsun.f
    ifort -c libtau.f
    ifort -c ellip.f
    ifort -c sphdist.f
    ifort -o aktsurf aktsurf.o libsun.o libtau.o ellip.o sphdist.o
    ifort -c remodl.f
    ifort -c emtvelin.f
    ifort -o remodl remodl.o emtvelin.o libtau.o libsun.o
    ifort -c setbrn.f
    ifort -o setbrn setbrn.o libtau.o libsun.o
    rm *.o
    ifort -c remodl.f
    ifort -c libtau.f
    ifort -c libsun.f
    ifort -c emtvelin.f
    ifort -o remodl remodl.o emtvelin.o libtau.o libsun.o
    ifort -c setbrn.f
    ifort -o setbrn setbrn.o libtau.o libsun.o
     
    Compilation complete
    

    5.设置环境变量

    相关文章

      网友评论

          本文标题:始于FMTT——解压、编译

          本文链接:https://www.haomeiwen.com/subject/axpenctx.html