[ English | Japanese ] [ �°ç��æµ�ä½��»è�³å�¶æ¥½�� / gtool ���­ã�¸ã�§ã���� ] [ gtool5 ���­ã�¥ã�¡ã�³ã�� ]

gtool5 ¥¤¥ó¥¹¥È¡¼¥ë¥¬¥¤¥É


  1. Æ°ºî´Ä¶­
  2. Æþ½ÐÎÏ¥Õ¥¡¥¤¥ë·Á¼°
  3. ¥¤¥ó¥¹¥È¡¼¥ë¤Îή¤ì
  4. ɬÍפʥ½¥Õ¥È¥¦¥§¥¢
  5. ¥Ó¥ë¥É¤Î¼ê°ú¤­
  6. ¥¤¥ó¥¹¥È¡¼¥ë¤Î¼ê°ú¤­
  7. ¥Æ¥¹¥È¥×¥í¥°¥é¥à¼Â¹Ô¤Î¼ê½ç
  8. gt5frt ¤Ø¤Î¥Ñ¥¹¤ÎÀßÄê

Æ°ºî´Ä¶­

gtool5 ¥é¥¤¥Ö¥é¥ê¤Ï°Ê²¼¤Î´Ä¶­¤Ç¤ÎÆ°ºî¤ò³Îǧ¤·¤Æ¤¤¤Þ¤¹.

²áµî¤Ë¤Ï°Ê²¼¤Î´Ä¶­¤Ç¤âÆ°ºî¤·¤¿¤³¤È¤¬³Îǧ¤µ¤ì¤Æ¤¤¤Þ¤¹. ³Îǧ¤Ï¤·¤Æ¤¤¤Þ¤»¤ó¤¬, ¸½ºß¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤â¤ª¤½¤é¤¯Æ°ºî¤¹¤ë¤È´üÂÔ¤µ¤ì¤Þ¤¹.

Æþ½ÐÎÏ¥Õ¥¡¥¤¥ë·Á¼°

gtool5 ¤Ï°Ê²¼¤Î¥Õ¥¡¥¤¥ë·Á¼°¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤¹.

¤Þ¤¿, º£¸å°Ê²¼¤Î¥Õ¥¡¥¤¥ë·Á¼°¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤ë¤È¤¤¤¤¤Ê¤È¹Í¤¨¤Æ¤¤¤Þ¤¹.

¥¤¥ó¥¹¥È¡¼¥ë¤Îή¤ì

gtool5 ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë¹Ô¤¤¤Þ¤¹. ¾Ü¤·¤¯¤Ï³Æ¹àÌܤò»²¾È¤·¤Æ¤¯¤À¤µ¤¤.

  1. ɬÍפʥ½¥Õ¥È¥¦¥§¥¢ ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹.
  2. ¥Ó¥ë¥É¤Î¼ê°ú¤­ ¤Ë½¾¤¤, ¥½¡¼¥¹¤«¤é¥é¥¤¥Ö¥é¥ê¤ò¥Ó¥ë¥É¤·¤Þ¤¹.
  3. ¥¤¥ó¥¹¥È¡¼¥ë¤Î¼ê°ú¤­ ¤Ë½¾¤¤, ¥é¥¤¥Ö¥é¥ê¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹.
  4. ¥Æ¥¹¥È¥×¥í¥°¥é¥à¼Â¹Ô¤Î¼ê½ç ¤Ë½¾¤¤, ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿ ¥é¥¤¥Ö¥é¥ê¤¬Àµ¾ï¤Ëµ¡Ç½¤¹¤ë¤«¤É¤¦¤«³Îǧ¤·¤Æ¤¯¤À¤µ¤¤.
  5. gt5frt ¤Ø¤Î¥Ñ¥¹¤ÎÀßÄê ¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤.

¥¤¥ó¥¹¥È¡¼¥ë¤ÎÎã

gtool ¥×¥í¥¸¥§¥¯¥È ¤Î¡Ö¥Á¥å¡¼¥È¥ê¥¢¥ë¡×¤Ç¤Ï, ¥¤¥ó¥¹¥È¡¼¥ë¤Î¼ÂÎã¤â¾Ò²ð¤µ¤ì¤Æ¤¤¤Þ¤¹. ¥¤¥ó¥¹¥È¡¼¥ë¤¬¤¦¤Þ¤¯¤¤¤«¤Ê¤¤¾ì¹ç¤Ï»²¾È¤·¤Æ¤¯¤À¤µ¤¤.

Debian GNU/Linux ¥æ¡¼¥¶¤Î¤ß¤Ê¤µ¤Þ¤Ø

Debian GNU/Linux ¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ï, <URL:http://www.gfd-dennou.org/library/gtool/debian.htm> ¤Ë¤ÆÇÛÉÛ¤·¤Æ¤¤¤ë¥Ð¥¤¥Ê¥ê¥Ñ¥Ã¥±¡¼¥¸¤âÍøÍѤǤ­¤Þ¤¹.

Windows ¥æ¡¼¥¶¤Î¤ß¤Ê¤µ¤Þ¤Ø

²µÉô ľ¿Í¤µ¤ó¤¬ gtool5 Windows ¥Ð¥¤¥Ê¥ê ¤Ë¤Æ Intel Visual Fortran ÍÑ ¤Î Windows ¥Ð¥¤¥Ê¥ê¤òºîÀ®¡¦¸ø³«¤·¤Æ¤¤¤Þ¤¹.

ɬÍפʥ½¥Õ¥È¥¦¥§¥¢

gtool5 ¤òÍøÍѤ¹¤ë¤¿¤á¤Ë¤Ï, °Ê²¼¤Î¥½¥Õ¥È¥¦¥§¥¢¤ò »öÁ°¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹.

netCDF (¥Ð¡¼¥¸¥ç¥ó 3.6)

Debian GNU/Linux ¤ò»ÈÍѤ·¤Æ¤ª¤ê, ¥Ð¥¤¥Ê¥ê¥Ñ¥Ã¥±¡¼¥¸¤òÍøÍѤ¹¤ë¾ì¹ç

¥½¡¼¥¹¤«¤é¥Ó¥ë¥É¤¹¤ë¾ì¹ç

¥É¥­¥å¥á¥ó¥È¤òÀ¸À®¤¹¤ë¤¿¤á¤Ë¤Ï°Ê²¼¤Î¥½¥Õ¥È¥¦¥§¥¢¤ò »öÁ°¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹. ¤¿¤À¤·, gtool5 ¤Î TGZ ¥Ñ¥Ã¥±¡¼¥¸ ¤«¤éÆþ¼ê¤¹¤ë¾ì¹ç¤Ë¤Ï´û¤ËÀ¸À®ºÑ¤ß¤Ç¤¹.

¥Ó¥ë¥É¤Î¼ê°ú¤­

TGZ ¥Ñ¥Ã¥±¡¼¥¸¤ÎŸ³«

ŬÅö¤Êºî¶È¥Ç¥£¥ì¥¯¥È¥ê¤Ç¥½¡¼¥¹¥¢¡¼¥«¥¤¥Ö¤òŸ³«¤·¤Þ¤¹. ¥½¡¼¥¹¤Ï gtool5-¥Ð¡¼¥¸¥ç¥ó ¤È¤¤¤¦¥Ç¥£¥ì¥¯¥È¥ê¤ËŸ³«¤µ¤ì¤Þ¤¹.

$ tar xvzf gtool5_current.tgz

¤Þ¤¿¤Ï

$ zcat gtool5_current.tar.gz | tar -xvf -

Fortran ¥³¥ó¥Ñ¥¤¥é¤Î»ØÄê

´Ä¶­ÊÑ¿ô FC ¤Ë»ÈÍѤ¹¤ë Fortran ¥³¥ó¥Ñ¥¤¥é¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤. °Ê²¼¤Ï, ÍøÍѤ¹¤ë¥³¥ó¥Ñ¥¤¥é¤¬ frt ¤Î¾ì¹ç¤Ç¤¹.

ºÇŬ²½¤ä¥Ç¥Ð¥Ã¥°¤Î¤¿¤á¤Î¥ª¥×¥·¥ç¥ó¤Ï´Ä¶­ÊÑ¿ô FFLAGS ¤ËÀßÄꤷ¤Æ¤¯¤À¤µ¤¤. °Ê²¼¤ÎÎã¤Ï frt ¤Î¹â®²½¤È ÊÂÎ󲽤Τ¿¤á¤Î¥ª¥×¥·¥ç¥ó¤Ç¤¹.

Config.mk ¤ÎºîÀ®

Ÿ³«¤µ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ë°ÜÆ°¤·, ./configure ¤ò¼Â¹Ô¤·¤Þ¤¹. --with-netcdf= ¤Ë¤Ï netCDF ¥é¥¤¥Ö¥é¥ê¤Î¥Ñ¥¹¤ò»ØÄꤷ¤Þ¤¹. (°Ê²¼¤ÎÎã¤Ï /usr/local/netcdf/lib/libnetcdf.a ¤Ë¥é¥¤¥Ö¥é¥ê¤¬¤¢¤ë ¾ì¹ç¤Î¤â¤Î¤Ç¤¹). ¤³¤Î¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ Config.mk ¥Õ¥¡¥¤¥ë¤¬À¸À®¤µ¤ì¤Þ¤¹. netCDF ¥é¥¤¥Ö¥é¥ê¤¬¶¦Í­¥é¥¤¥Ö¥é¥ê¤Ç¤¢¤ë¾ì¹ç, --with-netcdff= ¤â»ØÄꤹ¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó. ¾Ü¤·¤¯¤Ï²¼µ­¤Î¥ª¥×¥·¥ç¥ó¤Î¾ÜºÙ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤.

$ ./configure --with-netcdf=/usr/local/netcdf/lib/libnetcdf.a

gtool5 ¤ò MPI ÍѤ˥ӥë¥É¤¹¤ë¾ì¹ç¤Ë¤Ï, MPI ÍѤ˥ӥë¥É¤¹¤ë¾ì¹ç¤Ë¤Ï ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤.

¥Ó¥ë¥É¤Ë¤Ï GNU make ¤¬É¬ÍפȤʤ뤿¤á, configure ¤Ï PATH Æ⤫¤é ¼«Æ°¤Ç GNU make ¤òõºº¤·¤è¤¦¤È¤·¤Þ¤¹¤¬, ¤â¤·¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç, ¥¨¥é¡¼¤òÊÖ¤·¤Þ¤¹. ¤½¤Î¾ì¹ç¤Ë¤Ï´Ä¶­ÊÑ¿ô MAKE ¤Ë GNU make ¥³¥Þ¥ó¥É¤ò»ØÄꤷ¤ÆºÆÅÙ configure ¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤.

¥¤¥ó¥¹¥È¡¼¥ëÀè¤Ê¤É¤òÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ï, °Ê²¼¤Î¤è¤¦¤Ë --help ¥ª¥× ¥·¥ç¥ó¤ò¤Ä¤±¤ë¤³¤È¤Ç, »ØÄê²Äǽ¤Ê¥ª¥×¥·¥ç¥ó¥ê¥¹¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹.

$ ./configure --help

¼ç¤Ê¥ª¥×¥·¥ç¥ó¤Ë´Ø¤·¤Æ¤ÎÀâÌÀ¤Ç¤¹.

--with-netcdf=ARG
ARG ¤Ë ¥Ó¥ë¥É¤ËɬÍ×¤Ê netCDF ¥é¥¤¥Ö¥é¥ê ¤ò»ØÄꤷ¤Þ¤¹. ɬ¤ºÌÀ¼¨Åª¤Ë»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹.
--with-netcdff=ARG
netCDF ¥é¥¤¥Ö¥é¥ê¤¬¶¦Í­¥é¥¤¥Ö¥é¥ê¤Ç¤¢¤ë¾ì¹ç, C Íѥ饤¥Ö¥é¥ê¤È Fortran Íѥ饤¥Ö¥é¥ê¤È¤Ëʬ¤«¤ì¤Æ¥Ó¥ë¥É¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤¬¤¢¤ê¤Þ¤¹. ¤½¤ÎºÝ¤Ï, ¾åµ­¥ª¥×¥·¥ç¥ó¤Ë C Íѥ饤¥Ö¥é¥ê¤ò»ØÄꤷ, ËÜ¥ª¥×¥·¥ç¥ó¤Î ARG ¤Ë Fortran Íѥ饤¥Ö¥é¥ê ¤ò »ØÄꤷ¤Þ¤¹.
--prefix=ARG
ARG ¤Ë¥é¥¤¥Ö¥é¥ê¤ä¥â¥¸¥å¡¼¥ë, ¼Â¹Ô¥Õ¥¡¥¤¥ë¤Î¥¤¥ó¥¹¥È¡¼¥ëÀè¤Î ¥Ç¥£¥ì¥¯¥È¥ê¤Î¥×¥ì¥Õ¥£¥Ã¥¯¥¹¤ò»ØÄꤷ¤Þ¤¹. ¥Ç¥Õ¥©¥ë¥È¤Ï /usr/local/gtool5 ¤Ç¤¹.
--host=ARG
¥¯¥í¥¹¥³¥ó¥Ñ¥¤¥ë¤ò¹Ô¤¦¾ì¹ç¤Ë¤Ï, ¥Ñ¥Ã¥±¡¼¥¸¤¬¼Â¹Ô¤µ¤ì¤ë¥·¥¹¥Æ¥à¥¿¥¤¥×̾ ¤ò ARG ¤Ë»ØÄꤷ¤Þ¤¹.
--libdir=ARG
ARG ¤Ë¥é¥¤¥Ö¥é¥ê¤Î¥¤¥ó¥¹¥È¡¼¥ëÀè¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò»ØÄꤷ¤Þ¤¹. ¥Ç¥Õ¥©¥ë¥È¤Ï /usr/local/gtool5/lib ¤Ç¤¹.
--includedir=ARG
ARG ¤Ë¥â¥¸¥å¡¼¥ë¾ðÊó¥Õ¥¡¥¤¥ë¤Î¥¤¥ó¥¹¥È¡¼¥ëÀè¤Î¥Ç¥£¥ì¥¯¥È¥ê ¤ò»ØÄꤷ¤Þ¤¹. ¥Ç¥Õ¥©¥ë¥È¤Ï /usr/local/gtool5/include ¤Ç¤¹.
--bindir=ARG
ARG ¤Ë¼Â¹Ô¥Õ¥¡¥¤¥ë¤Î¥¤¥ó¥¹¥È¡¼¥ëÀè¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò»ØÄꤷ¤Þ¤¹. ¥Ç¥Õ¥©¥ë¥È¤Ï /usr/local/gtool5/bin ¤Ç¤¹.
--with-docdir=ARG
ARG ¤Ë¥É¥­¥å¥á¥ó¥È¥Õ¥¡¥¤¥ë¤Î¥¤¥ó¥¹¥È¡¼¥ëÀè¤ò»ØÄꤷ¤Þ¤¹. ¥Ç¥Õ¥©¥ë¥È¤Ï /usr/local/gtool5/doc ¤Ç¤¹.
--with-gt5libname=ARG
ARG ¤Ë gtool5 ¤Î¥é¥¤¥Ö¥é¥ê̾¤ò»ØÄꤷ¤Þ¤¹. ¥é¥¤¥Ö¥é¥ê̾¤Ï lib<ARG>.a ¤È¤Ê¤ê¤Þ¤¹. ¥Ç¥Õ¥©¥ë¥È¤Ï gtool5 ¤Ç¤¢¤ê, ¤½¤ÎºÝ¤Î¥é¥¤¥Ö¥é¥ê̾¤Ï libgtool5.a ¤È¤Ê¤ê¤Þ¤¹.
--with-gt5suffix=ARG
ARG ¤Ë¤Ï¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥ì¥¯¥È¥ê, ¥é¥¤¥Ö¥é¥ê̾, ¼Â¹Ô¥Õ¥¡¥¤¥ë¤ÎËöÈø¤Ë¤Ä¤±¤ëÀÜÈø¸ì¤ò»ØÄꤷ¤Þ¤¹. Î㤨¤Ð, ¾¤¬Á´¤Æ¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤Ç ffc5 ¤È»ØÄꤹ¤ë¤È, ¥¤¥ó¥¹¥È¡¼¥ëÀè¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¥×¥ì¥Õ¥£¥Ã¥¯¥¹¤¬ /usr/local/gtool5-ffc5 , ¥é¥¤¥Ö¥é¥ê̾¤¬ libgtool5-ffc5.a , ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¼Â¹Ô¥Õ¥¡¥¤¥ë̾¤Ï gt5frt.ffc5 , gt5config.ffc5 Åù¤Î¤è¤¦¤Ë ¤Ê¤ê¤Þ¤¹.
--with-lang_conform_check=ARG
ARG ¤Ë¸À¸ìµ¬³Ê¤ò»ØÄꤹ¤ë¤³¤È¤Ç, ¥³¥ó¥Ñ¥¤¥ë»þ¤Ë¸À¸ìµ¬³Ê¤Î ¥Á¥§¥Ã¥¯¤ò¹Ô¤¦¤è¤¦, ¥ª¥×¥·¥ç¥ó¤òÄɲä·¤Þ¤¹. ¸½ºß "95" ¤Î¤ß»ØÄê²Äǽ¤Ç¤¹. ¥³¥ó¥Ñ¥¤¥é¤Ë¤è¤Ã¤Æ¤Ï»ØÄê¤Ç¤­¤Þ¤»¤ó.
--enable-debug
¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤³¤È¤Ç, ¥³¥ó¥Ñ¥¤¥ë»þ¤ä¼Â¹Ô»þ¤Ë¥Ç¥Ð¥Ã¥°¥á¥Ã¥»¡¼¥¸ ¤ò½ÐÎϤ¹¤ë¥ª¥×¥·¥ç¥ó¤òÄɲä·¤Þ¤¹. ÂçÄñ¤Î¾ì¹ç, ¥×¥í¥°¥é¥à¤Î¼Â¹Ô®ÅÙ¤¬Äã²¼¤¹¤ë¤¿¤á, ¥Ç¥Ð¥Ã¥°»þ¤Î¤ß »ÈÍѤ·¤Þ¤¹. ¥³¥ó¥Ñ¥¤¥é¤Ë¤è¤Ã¤Æ¤Ï̵¸ú¤Ç¤¹.
--with-abort=ARG
ARG ¤Ë abort, errtra-setrcd, exit, setrcd, stop ¤Î¤¤¤º¤ì¤« ¤ò»ØÄꤹ¤ë¤³¤È¤Ç, ½ªÎ»»þ¤ËÍѤ¤¤ë Fortran ¤ÎÆâÉô´Ø¿ô¤òÊѹ¹¤¹¤ë¤³¤È¤¬ ²Äǽ¤Ç¤¹. ¥Ç¥Õ¥©¥ë¥È¤Ï abort ¤Ç¤¹.
abort
Fortran ¤ÎÆâÉô¥µ¥Ö¥ë¡¼¥Á¥ó abort ¤Ç½ªÎ»¤·¤Þ¤¹.
errtra-setrcd
Fujitsu Fortran ¤Î ERRTRA ¥µ¡¼¥Ó¥¹¥µ¥Ö¥ë¡¼¥Á¥ó¤ò¸Æ¤Ó½Ð¤·, ¸½ºß¼Â¹ÔÃæ¤Î¥×¥í¥°¥é¥àñ°Ì¤Þ¤Ç¤Î¥È¥ì¡¼¥¹¥Ð¥Ã¥¯¥Þ¥Ã¥×¤ò½ÐÎϤ·, ½ªÎ»¤·¤Þ¤¹. Fujitsu Fortran ¤Î SETRCD ¥µ¡¼¥Ó¥¹¥µ¥Ö¥ë¡¼¥Á¥ó¤Ë¤Æ, Éüµ¢¥³¡¼¥É 13 ¤òÀßÄꤷ, ½ªÎ»¥³¡¼¥É¤È¤·¤Æ 3 ¤òÀßÄꤷ¤Þ¤¹.
exit
Fortran ¤ÎÆâÉô¥µ¥Ö¥ë¡¼¥Á¥ó exit ¤Ç½ªÎ»¤·¤Þ¤¹.
setrcd
Fujitsu Fortran ¤Î SETRCD ¥µ¡¼¥Ó¥¹¥µ¥Ö¥ë¡¼¥Á¥ó¤ò¸Æ¤Ó½Ð¤·, Fortran ¤ÎÉüµ¢¥³¡¼¥É¤È¤·¤Æ 3 ¤òÀßÄꤷ¤Æ½ªÎ»¤·¤Þ¤¹.
stop
Fortran ¤ÎÆâÉô´Ø¿ô stop ¤Ç½ªÎ»¤·¤Þ¤¹.
--config-cache ¤Þ¤¿¤Ï -C

Config.mk ¥Õ¥¡¥¤¥ë¤¬À¸À®¤µ¤ì¤ë¤ÈƱ»þ¤Ë, config.cache ¥Õ¥¡¥¤¥ë¤¬ºîÀ®¤µ¤ì, ./configure ¤Î°ú¿ô¤Ë»ØÄꤵ¤ì¤¿ netCDF ¥é¥¤¥Ö¥é¥ê¤Î°ÌÃ֤ʤɤξðÊó¤¬ÊÝ»ý¤µ¤ì¤Þ¤¹.

ºÆÅÙ ./configure ¤ò¼Â¹Ô¤¹¤ëºÝ¤Ë¤â¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤³¤È¤Ç, config.cache ¤¬Æɤ߹þ¤Þ¤ì, Á°²ó»ØÄꤷ¤¿¥ª¥×¥·¥ç¥óÅù¤¬°ú¤­·Ñ¤¬¤ì¤Þ¤¹. ´û¤Ë¸ºß¤¹¤ë config.cache ¤ò̵»ë¤¹¤ë¾ì¹ç¤Ï¤³¤Î¥ª¥×¥·¥ç¥ó¤ò »ØÄꤻ¤º¤Ë ./configure ¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤.

Î㤨¤Ð²¼µ­¤Î¤è¤¦¤Ë ./configure ¤ò¼Â¹Ô¤¹¤ë¤È¤·¤Þ¤¹.

$ ./configure -C --with-netcdf=/usr/local/netcdf/lib/libnetcdf.a --enable-debug

¤¹¤ë¤È¼¡²ó°Ê¹ß, ²¼µ­¤Î¤è¤¦¤Ë ./configure ¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ç netCDF ¥é¥¤¥Ö¥é¥ê¤Î°ÌÃÖ¤ä, ¥Ç¥Ð¥Ã¥°¥ª¥×¥·¥ç¥ó¤òÉղ乤ë¾ðÊó¤¬ °ú¤­·Ñ¤¬¤ì¤Þ¤¹.

$ ./configure -C

Debian GNU/Linux ¤Ç Fujitsu Fortran ¤òÍøÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï, Config.cache.debian-ffc* ¤ò config.cache ¤Ë°ÜÆ°¤·¤Æ ./configure ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤À¤±¤Ç¼«Æ°Åª¤Ë ¥é¥¤¥Ö¥é¥ê¤Î°ÌÃÖ¤¬ÀßÄꤵ¤ì¤Þ¤¹.

$ cp Config.cache.debian-ffc5 config.cache
$ ./configure -C

MPI ÍѤ˥ӥë¥É¤¹¤ë¾ì¹ç¤Ë¤Ï

gtool5 ¤ò MPI ÍѤ˥ӥë¥É¤¹¤ë¾ì¹ç¤Ë¤Ï¤Þ¤º MPI ¥é¥¤¥Ö¥é¥ê¤ò¥·¥¹¥Æ¥à¤Ë ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤.

Config.mk ¤òºîÀ®¤¹¤ë¾ì¹ç¤Ë¤Ï, ´Ä¶­ÊÑ¿ô FC ¤Ë¤Ï mpif90 ¤Ê¤É¤Î MPI ÍÑ¥³¥ó¥Ñ¥¤¥ë¥³¥Þ¥ó¥É¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤. ¤½¤·¤Æ, °Ê²¼¤Î¤è¤¦¤Ë configure ¤Ë¤Ï¥ª¥×¥·¥ç¥ó --with-mpiexec ¤Ë MPI ¼Â¹Ô¥³¥Þ¥ó¥É¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤.

$ ./configure --with-netcdf=/usr/local/netcdf/lib/libnetcdf.a --with-mpiexec=mpirun

´Ä¶­¤Ë¤è¤Ã¤Æ¤Ï MPI ¼Â¹Ô¥³¥Þ¥ó¥É¤¬Æüì¤Ç, configure ¤¬¤¦¤Þ¤¯Æ°ºî¤·¤Ê¤¤¾ì¹ç¤¬¤¢¤ê¤Þ¤¹. ¤½¤Î¾ì¹ç¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤Ë --enable-mpi ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤.

$ ./configure --with-netcdf=/usr/local/netcdf/lib/libnetcdf.a --enable-mpi

¤½¤Î¾¤Î¥ª¥×¥·¥ç¥ó¤Ê¤É¤Ë¤Ä¤¤¤Æ¤Ï, Config.mk ¤ÎºîÀ® ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤.

Config.mk ¤ÎÊÔ½¸

´Ä¶­¤Ë¹ç¤ï¤» Config.mk ¤ò¼êÆ°¤ÇÊÔ½¸¤·¤Æ¤¯¤À¤µ¤¤. ²¼µ­¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤è¤¯Ê¬¤«¤é¤Ê¤¤¾ì¹ç¤Ë¤Ï¤È¤ê¤¢¤¨¤º ¥½¡¼¥¹¥³¡¼¥É¤Î¥³¥ó¥Ñ¥¤¥ë ¤Ø¿Ê¤ó¤Ç¤¯¤À¤µ¤¤.

FC          : Fortran ¥³¥ó¥Ñ¥¤¥é

SYSFFLAGS   : ¥³¥ó¥Ñ¥¤¥ë»þ¡¦¥ê¥ó¥¯»þ¤ËɬÍפʥե饰
              (Fortran ¥³¥ó¥Ñ¥¤¥é¼Â¹Ô»þ¤ËɬÍפʥª¥×¥·¥ç¥ó)

SYSLDFLAGS  : ¥ê¥ó¥¯»þ¤ËɬÍפʥե饰

SYSLDLIBS   : ¥ê¥ó¥¯»þ¤ËɬÍפʥ饤¥Ö¥é¥ê

F90MODTYPE  : ¥â¥¸¥å¡¼¥ë¾ðÊó¤ÎÅϤ·Êý

DEST_LIB    : gtool5 ¥é¥¤¥Ö¥é¥ê¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥ì¥¯¥È¥ê

DEST_INC    : gtool5 ¥â¥¸¥å¡¼¥ë¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥ì¥¯¥È¥ê

DEST_BIN    : gtool5 ¼Â¹Ô¥Õ¥¡¥¤¥ë¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥ì¥¯¥È¥ê

DEST_DOC    : gtool5 ¥É¥­¥å¥á¥ó¥È¥Õ¥¡¥¤¥ë¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥ì¥¯¥È¥ê



MODS        : ¥â¥¸¥å¡¼¥ë¥Õ¥¡¥¤¥ë³ÈÄ¥»Ò

MAKE        : GNU make ¥³¥Þ¥ó¥É

AR          : ¥¢¡¼¥«¥¤¥Ö¥³¥Þ¥ó¥É

ARFLAGS     : ¥¢¡¼¥«¥¤¥Ö»þ¤ËɬÍפʥե饰

RANLIB      : ¥¢¡¼¥«¥¤¥Ö¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤òºîÀ®¤¹¤ë¥³¥Þ¥ó¥É

¥½¡¼¥¹¥³¡¼¥É¤Î¥³¥ó¥Ñ¥¤¥ë

¥Ó¥ë¥É¤Ë¤Ïɬ¤º GNU make ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤. ¾¤Î "make" ¥×¥í¥°¥é¥à¤ò»È ÍѤ¹¤ë¤È, Àµ¤·¤¯¥Ó¥ë¥É¤¬¹Ô¤ï¤ì¤Þ¤»¤ó. °Ê¹ß GNU make ¤Î¥³¥Þ¥ó¥É̾¤ò "make" ¤Èɽµ­¤·¤Þ¤¹¤¬, ¤³¤ì¤é¤Ï¥·¥¹¥Æ¥à¤Î GNU make ¥³¥Þ¥ó¥É¤Î̾Á°¤ËÃÖ¤­´¹¤¨¤Æ¤¯¤À¤µ¤¤.

./configure ¤ò¼Â¹Ô¤¹¤ë¤È, °Ê²¼¤Î¤è¤¦¤Ë GNU make ¤Î¥³¥Þ¥ó¥É̾¤¬ ɽ¼¨¤µ¤ì¤Þ¤¹. ¤³¤Î¥á¥Ã¥»¡¼¥¸¤Ë½¾¤Ã¤Æ GNU make ¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤.

Execute GNU make in the current directory, as follows.

  /usr/bin/make

¥É¥­¥å¥á¥ó¥È¤ÎÀ¸À®

¥Þ¥Ë¥å¥¢¥ë¤È¥³¡¼¥É¥ê¥Õ¥¡¥ì¥ó¥¹¤Î¥³¥ó¥Ñ¥¤¥ë¤Ï¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê ¤Ë¤ª¤¤¤Æ, °Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤. gtool5 ¤Î TGZ ¥Ñ¥Ã¥±¡¼¥¸ ¤«¤éÆþ¼ê¤¹¤ë¾ì¹ç¤Ë¤Ï´û¤ËÀ¸À®ºÑ¤ß¤Ç¤¹.

$ make doc

¥¤¥ó¥¹¥È¡¼¥ë¤Î¼ê°ú¤­

¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ç°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤. ¥·¥¹¥Æ¥àÎΰè¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¾ì¹ç¤Ë¤Ï´ÉÍý¼Ô¸¢¸Â¤¬ ɬÍפǤ¹. (¥Ç¥Õ¥©¥ë¥È¤Î¾ì¹ç¤Ï¥·¥¹¥Æ¥àÎΰè¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹).

# make install

¥É¥­¥å¥á¥ó¥È¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¾ì¹ç¤Ë¤Ï°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹.

# make install-doc

¥Æ¥¹¥È¥×¥í¥°¥é¥à¼Â¹Ô¤Î¼ê½ç

¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤ª¤¤¤Æ, °Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤. ¥¨¥é¡¼¤¬À¸¤¸¤º¤Ë " *** Compilation and installation are succeeded !! *** " ¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤ì¤Ð¥¤¥ó¥¹¥È¡¼¥ë¤Ï´°Î»¤Ç¤¹.

$ make test-installed

¥¯¥í¥¹¥³¥ó¥Ñ¥¤¥ë¤ò¹Ô¤Ã¤¿¾ì¹ç

¥é¥¤¥Ö¥é¥ê¤ò¥¯¥í¥¹¥³¥ó¥Ñ¥¤¥ë¤·¤¿¾ì¹ç¤Ï, ²¼µ­¤Î¤è¤¦¤Ê¥á¥Ã¥»¡¼¥¸¤¬ ɽ¼¨¤µ¤ì¤Þ¤¹.

Cross compile mode will be used.
First, change directory to ./test .
Secondly, submit ...
       dc_string_test ... histtest ...,

Thirdly, change directory to ./ .
Last "make test-installed-c"

¤³¤Î¥á¥Ã¥»¡¼¥¸¤Ë½¾¤¤, °Ê²¼¤Î¤è¤¦¤Ë¥Æ¥¹¥È¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤.

  1. test ¥Ç¥£¥ì¥¯¥È¥ê¤Ë°ÜÆ°¤·¤Þ¤¹.
  2. ¥ê¥¹¥È¤µ¤ì¤ë¼Â¹Ô¥Õ¥¡¥¤¥ë¤ò¼Â¹Ô¤·¤Þ¤¹. ¼Â¹ÔÊýË¡¤Ï¤½¤ì¤¾¤ì¤Î´Ä¶­¤Ë°Í¸¤¹¤ë¤Î¤Ç, ÊÌÅÓÄ´¤Ù¤Æ¤¯¤À¤µ¤¤.
  3. ¸µ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ËÌá¤ê¤Þ¤¹.
  4. make test-installed-c ¤ò¼Â¹Ô¤·¤Þ¤¹.

¥¨¥é¡¼¤¬À¸¤¸¤º¤Ë " *** Compilation and installation are succeeded !! *** " ¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤ì¤Ð¥¤¥ó¥¹¥È¡¼¥ë¤Ï´°Î»¤Ç¤¹.

gt5frt ¤Ø¤Î¥Ñ¥¹¤ÎÀßÄê

¾åµ­¤Î¤è¤¦¤ËÀµ¤·¤¯¥¤¥ó¥¹¥È¡¼¥ë¤¬¹Ô¤ï¤ì¤¿¤é, gt5frt ¤È¤¤¤¦¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤¬ --prefix=ARG ¤Ç»ØÄꤵ¤ì¤¿¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Î bin ¥Ç¥£¥ì¥¯¥È¥ê ARG/bin ¤ËºîÀ®¤µ¤ì¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹. ( --prefix= ¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï /usr/local/gtool5/bin/ °Ê²¼).

¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ø¤Î¥Ñ¥¹¤òÄ̤·¤Æ¤¯¤À¤µ¤¤. °Ê²¼¤Ï /usr/local/gtool5/bin/ °Ê²¼¤Ë gt5frt ¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¾ì¹ç¤ÎÎã¤Ç¤¹.

gt5frt ¤Ï gtool5 ¥é¥¤¥Ö¥é¥ê¤òÍøÍѤ·¤¿ Fortran ¥×¥í¥°¥é¥à¤ò ´Êñ¤Ë¥³¥ó¥Ñ¥¤¥ë, ¥ê¥ó¥¯¤¹¤ë¤¿¤á¤Î¥·¥§¥ë¥¹¥¯¥ê¥×¥È¤Ç¤¹. ¤³¤ì¤Þ¤ÇÍøÍѤ·¤Æ¤¤¤¿ Fortran ¥³¥ó¥Ñ¥¤¥é¤Î¥³¥Þ¥ó¥É¤ÎÂå¤ï¤ê¤Ë gt5frt ¤òÍѤ¤¤ë¤³¤È¤Ç, ¼«Æ°Åª¤Ë gtool5 ¥é¥¤¥Ö¥é¥ê¤Ø¤Î ¥ê¥ó¥¯, ¥â¥¸¥å¡¼¥ë·²¤Ø¤Î¥Ç¥£¥ì¥¯¥È¥ê»ØÄê¤ò¹Ô¤Ã¤Æ¤¯¤ì¤Þ¤¹.

$ gt5frt test.f90

/usr/bin/g95 -I/usr/local/gtool5/include -O test.f90 \
    -L/usr/local/gtool5/lib -lgtool5 -L/usr/local/lib -lnetcdf

$Id: INSTALL,v 1.11 2010-04-13 05:22:42 morikawa Exp $
gtool Development Group / GFD Dennou Staff dcstaff@gfd-dennou.org