Fortran Coder

查看: 9207|回复: 1
打印 上一主题 下一主题

[编译器] vasp编译

[复制链接]

1

帖子

1

主题

0

精华

新人

F 币
9 元
贡献
3 点
跳转到指定楼层
楼主
发表于 2014-8-4 09:27:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
系统:CentOS6.5
编译器:ifort2011.6.233
并行环境: openmpi1.4.4

vasp版本 :vasp5.2.11
fftw库:3.3.4

我的问题是:
1. 我需要安装mkl数学库么?但是 我查了下 mkl 显示如附图,不知ifort是否自带了mkl数据库?


2.编译vasPlib时 出下如下问题 不知是为何?


附上我的 makefile:
[Make] 纯文本查看 复制代码
01.SUFFIXES: .inc .f .F
02#-----------------------------------------------------------------------
03# Makefile for Portlan
04 
05d Group F90/HPF compiler
06# the makefile was tested only under Linux on Intel platforms
07# however it might work on other platforms as well
08#
09# this release of vasp.4.lib contains lapack v2.0
10# this can be compiled with pgf90 compiler if the option -O1 is used
11#
12 
13# Mind: one user reported that he had to copy preclib.F diolib.F
14#  dlexlib.F and drdatab.F to the directory vasp.4.4, compile the files
15#  there and link them directly  into vasp
16#  for no obvious reason these files could not be linked from the library
17#
18#-----------------------------------------------------------------------
19 
20# C-preprocessor
21CPP     = gcc -E -P -C
22 
23 $*.F >$*.f
24FC=ifort
25 
26CFLAGS = -O
27FFLAGS = -O0 -FI
28FREE   =  -FR
29 
30DOBJ =  preclib.o timing_.o derrf_.o dclock_.o  diolib.o dlexlib.o drdatab.o
31 
32#-----------------------------
33------------------------------------------
34# general rules
35#-----------------------------------------------------------------------
36 
37libdmy.a: $(DOBJ) lapack
38 
39_double.o linpack_double.o lapack_atlas.o
40        -rm libdmy.a
41        ar vq libdmy.a $(DOBJ)
42 
43# files which do not require autodouble
44lapack_min.o: lapack_min.f
45        $(FC) $(FFLAGS) $(NOFREE) -c lapack_min.f
46lapack_double.o: lapack_d
47 
48ouble.f
49        $(FC) $(FFLAGS) $(NOFREE) -c lapack_double.f
50lapack_single.o: lapack_single.f
51        $(FC) $(FFLAGS) $(NOFREE) -c lapack_single.f
52lapack_atlas.o: lapack_atlas.f
53        $(FC) $(FFLAGS) $(NOFREE) -c lapack_atlas.f
54linpack_double.o: linpack_double.f
55        $(FC) $(FFLAGS) $(NOFREE) -c linpack_double.f
56linpack_single.o: linpack_single.f
57 
58        $(FC) $(FFLAGS) $(NOFRE
59 
60E) -c linpack_single.f
61 
62.c.o:
63        $(CC) $(CFLAGS) -c $*.c
64 
65.F.o:
66        $(CPP)
67        $(FC) $(FFLAGS) $(FREE) $(INCS) -c $*.f
68.F.f:
69        $(CPP)
70.f.o:
71        $(FC) $(FFLAGS) $(FRE
72 
73E) $(INCS) -c $*.f

请高人指教下 谢谢.
分享到:  微信微信
收藏收藏 点赞点赞 点踩点踩

740

帖子

4

主题

0

精华

大师

农村外出务工人员

F 币
718 元
贡献
367 点

新人勋章爱心勋章水王勋章元老勋章热心勋章

沙发
发表于 2014-8-4 09:46:10 | 只看该作者
你是否没有安装 gfortran ?
您需要登录后才可以回帖 登录 | 极速注册

本版积分规则

捐赠本站|Archiver|关于我们 About Us|小黑屋|Fcode ( 京ICP备18005632-2号 )

GMT+8, 2025-4-8 13:45

Powered by Discuz! X3.4

© 2013-2025 Comsenz Inc.

快速回复 返回顶部 返回列表