{"id":177,"date":"2013-11-22T20:49:43","date_gmt":"2013-11-22T11:49:43","guid":{"rendered":"http:\/\/160.251.11.90\/?p=177"},"modified":"2013-11-22T20:51:18","modified_gmt":"2013-11-22T11:51:18","slug":"makefile%e3%81%a7path%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%97%e3%81%be%e3%81%86%e3%81%a8","status":"publish","type":"post","link":"https:\/\/bohyo.mydns.jp\/?p=177","title":{"rendered":"Makefile\u3067&#8221;PATH&#8221;\u3092\u4f7f\u3063\u3066\u3057\u307e\u3046\u3068"},"content":{"rendered":"<p><span style=\"color: #ff0000;\"><strong>\u4e0e\u592a\u8a71<\/strong><\/span>\uff08\u6328\u62f6\uff09<\/p>\n<p>\u7814\u7a76\u306b\u95a2\u4fc2\u3042\u308b\u3088\u3046\u3067\u306a\u3044\u9593\u629c\u3051\u306a\u304a\u8a71\u3002<br \/>\n\u7269\u7406\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u308b\uff08\u3053\u3046\u66f8\u304f\u3068\u304b\u3063\u3053\u3044\u3044\u306a\uff09\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u306e\u624b\u9593\u3084\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u8a2d\u5b9a\u3092\u697d\u306b\u3059\u308b\u305f\u3081\u306bMakefile\u306b\u305d\u3046\u3044\u3046\u306e\u3092\u5168\u90e8\u66f8\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nMakefile\u306e\u4f8b<\/p>\n<blockquote><p><code><br \/>\nfc=gfortran<br \/>\n$PARAM_FILE=params.f90<br \/>\nPATH=\/home\/sin_idea\/data1\/nankasugoi\/<br \/>\nN1=1000<\/p>\n<p>all:a.out $(PARAM_FILE)<\/p>\n<p>$(PARAM_FILE)<br \/>\necho \" module params\"&gt; $(PARAMS_FILE)<br \/>\necho \" implicit none\" &gt;&gt; $(PARAMS_FILE)<br \/>\necho \" integer,parameter::n1=$(N1)\" &gt;&gt; $(PARAMS_FILE)<br \/>\necho \" character*(*),parameter:: path = '$(PATH)'\" &gt;&gt; (PARAMS_FILE)<br \/>\n<\/code><\/p><\/blockquote>\n<p>\u307e\u3041\u3053\u306eMakefile\u306f\u52d5\u304b\u306a\u3044\u3067\u3059\u3051\u3069\u3053\u3093\u306a\u611f\u3058\u3067\u66f8\u3044\u3061\u3083\u3046\u3058\u3083\u306a\u3044\u3067\u3059\u304b\u3002\u305d\u3046\u3059\u308b\u3068<\/p>\n<blockquote><p><code><br \/>\ngfortran:command not found<br \/>\n<\/code>\n<\/p><\/blockquote>\n<p>\u3063\u3066\u3067\u3066\u304f\u308b\u3093\u3067\u3059\u3088\uff01<br \/>\n\u3067\u3001\u306a\u3093\u3067\u3060\u30fc\uff01\u3063\u3066\u306a\u3063\u3066\u305f\u3093\u3067\u3059\u3051\u3069\u51b7\u9759\u306b\u8003\u3048\u305f\u3089makefile\u3082\u30b7\u30a7\u30eb\u4e0a\u3067\u52d5\u3044\u3066\u308b\uff1f\u304b\u3089\u74b0\u5883\u5909\u6570\u306f\u3061\u3083\u3093\u3068\u4f7f\u3046\u3093\u3067\u3059\u3088\u306d\u3002<br \/>\n\u3064\u307e\u308a\u74b0\u5883\u5909\u6570PATH\u3092\u66f8\u304d\u3060\u3057\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u3067\u4e0a\u66f8\u304d\u3057\u3061\u3083\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u3002\u305d\u308a\u3083\u52d5\u304f\u308f\u3051\u306a\u3044\u3067\u3059\u306d\u3002<br \/>\n\u3068\u3044\u3046\u308f\u3051\u3067\u6b63\u89e3\u306f<\/p>\n<blockquote><p><code><br \/>\nfc=gfortran<br \/>\nPARAM_FILE=params.f90<br \/>\n<strong>PATHOUT<\/strong>=\/home\/sin_idea\/data1\/nankasugoi\/<br \/>\nN1=1000<\/code><\/p>\n<p>all:a.out $(PARAM_FILE)<\/p>\n<p>$(PARAM_FILE)<br \/>\necho &#8221; module params&#8221;&gt; $(PARAMS_FILE)<br \/>\necho &#8221; implicit none&#8221; &gt;&gt; $(PARAMS_FILE)<br \/>\necho &#8221; integer,parameter::n1=$(N1)&#8221; &gt;&gt; $(PARAMS_FILE)<br \/>\necho &#8221; character*(*),parameter:: path = <strong>&#8216;$(PATHOUT)'&#8221;<\/strong> &gt;&gt; (PARAMS_FILE)<br \/>\n<\/code>\n<\/p><\/blockquote>\n<p>\u3067\u3057\u305f\u3002<\/p>\n<p>\u5bdd\u4e0d\u8db3\u3067\u652f\u96e2\u6ec5\u88c2\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u4eca\u65e5\u306f\u3053\u306e\u8fba\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0e\u592a\u8a71\uff08\u6328\u62f6\uff09 \u7814\u7a76\u306b\u95a2\u4fc2\u3042\u308b\u3088\u3046\u3067\u306a\u3044\u9593\u629c\u3051\u306a\u304a\u8a71\u3002 \u7269\u7406\u30b7\u30df\u30e5\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u3044\u308b\uff08\u3053\u3046\u66f8\u304f\u3068\u304b\u3063\u3053\u3044\uff08\u4ee5\u4e0b\u7565\uff09<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,10,3],"tags":[],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-computer","category-notes","category-diary"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=177"}],"version-history":[{"count":0,"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/177\/revisions"}],"wp:attachment":[{"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bohyo.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}