<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>http://comp.chem.tohoku.ac.jp/mediawiki/index.php?action=history&amp;feed=atom&amp;title=LIST_DATA</id>
	<title>LIST DATA - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="http://comp.chem.tohoku.ac.jp/mediawiki/index.php?action=history&amp;feed=atom&amp;title=LIST_DATA"/>
	<link rel="alternate" type="text/html" href="http://comp.chem.tohoku.ac.jp/mediawiki/index.php?title=LIST_DATA&amp;action=history"/>
	<updated>2026-05-27T10:17:08Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.36.2</generator>
	<entry>
		<id>http://comp.chem.tohoku.ac.jp/mediawiki/index.php?title=LIST_DATA&amp;diff=1124&amp;oldid=prev</id>
		<title>Hirano: ページの作成:「== Introduction ==  The list_data_module defined in list_data.F contains an extendable LIST_DATA struct that is used by  linked_list_struct and  Dicti…」</title>
		<link rel="alternate" type="text/html" href="http://comp.chem.tohoku.ac.jp/mediawiki/index.php?title=LIST_DATA&amp;diff=1124&amp;oldid=prev"/>
		<updated>2026-05-26T04:19:37Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「== Introduction ==  The list_data_module defined in list_data.F contains an extendable LIST_DATA struct that is used by &lt;a href=&quot;/mediawiki/index.php/Linked_list&quot; title=&quot;Linked list&quot;&gt; linked_list_struct&lt;/a&gt; and  Dicti…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The list_data_module defined in list_data.F contains an extendable LIST_DATA struct that is used by [[ Linked list | linked_list_struct]] and [[ Dictionary data structure | dictionary_struct]].&lt;br /&gt;
&lt;br /&gt;
== Module structure == &lt;br /&gt;
&lt;br /&gt;
The module structure is shown below. Note that while new variables and new procedures can be added, the existing &amp;quot;key&amp;quot; and &amp;quot;val&amp;quot; and procedure &amp;quot;equal&amp;quot; shouldn't by renamed or removed. Otherwise the [[ Linked list | linked_list_struct]] and [[ Dictionary data structure | dictionary_struct]] may not work properly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;fortran&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
!! Module for data structure used by linked list and dictionary.&lt;br /&gt;
&lt;br /&gt;
MODULE list_data_module&lt;br /&gt;
  IMPLICIT NONE&lt;br /&gt;
&lt;br /&gt;
  !!! Struct for user defined data type.&lt;br /&gt;
  !!! For the destructors to work correctly, it can not &lt;br /&gt;
  !!! contain any pointer that needs to be deallocated later.  &lt;br /&gt;
  TYPE LIST_DATA&lt;br /&gt;
    INTEGER :: key  !!! Criterion for &amp;quot;==&amp;quot; operator, do not change it.&lt;br /&gt;
    REAL8 :: val    !!! Has value &amp;quot;NaN&amp;quot; for NULL data, do not change it.&lt;br /&gt;
    !!-----------------------------------------------&lt;br /&gt;
    !!  You may add something new here as needed.&lt;br /&gt;
    !! &lt;br /&gt;
    !!-----------------------------------------------&lt;br /&gt;
  CONTAINS&lt;br /&gt;
    GENERIC :: OPERATOR(==) =&amp;gt; equal&lt;br /&gt;
    PROCEDURE :: equal !!! (other)  RESULT(T/F)  &lt;br /&gt;
  END TYPE LIST_DATA&lt;br /&gt;
&lt;br /&gt;
CONTAINS&lt;br /&gt;
&lt;br /&gt;
! Check if two given data are the same.&lt;br /&gt;
! The criterion is key.&lt;br /&gt;
!  &lt;br /&gt;
  LOGICAL FUNCTION equal(self,other)&lt;br /&gt;
   IMPLICIT NONE&lt;br /&gt;
   CLASS(LIST_DATA),INTENT(IN) :: self&lt;br /&gt;
   TYPE(LIST_DATA),INTENT(IN) :: other&lt;br /&gt;
&lt;br /&gt;
    IF(self%key==other%key) THEN&lt;br /&gt;
      equal = .TRUE.&lt;br /&gt;
    ELSE&lt;br /&gt;
      equal = .FALSE.&lt;br /&gt;
    ENDIF&lt;br /&gt;
 &lt;br /&gt;
  END FUNCTION&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
END MODULE list_data_module&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Hirano</name></author>
	</entry>
</feed>