mod_featuredata¶
Dependencies¶
Derived Types Summary¶
| Name | Description |
|---|---|
FeatureData |
Procedures Summary¶
| Name | Type | Description |
|---|---|---|
constructor_feature_data |
Function | |
open_featuredata |
Subroutine | |
close_featuredata |
Subroutine | |
read_feature_data |
Subroutine | |
write_feature_data |
Subroutine | |
write_feature_data_binary |
Subroutine |
Derived Types Details¶
type FeatureData¶
Components
-
name: character– The name of the file. – Inherited from GenericFile -
path: character– The relative or absolute path to the file. – Inherited from GenericFile -
iomsg: character– Inherited from GenericFile -
fileunit: integer– Fortran file unit ID. -1 is the (invalid) default and has to be changed to an actual fileunit, preferably using new_unit in the intrinsic open() routine. – Inherited from GenericFile -
ios: integer– I/O status. 0 is the default and indicates that no error has occurred. Any other value indicates an error. – Inherited from GenericFile
Type-Bound Procedures
| Name | Attributes | Binding |
|---|---|---|
| check_ios | public | ⇒ check_ios |
| open | public | ⇒ open_featuredata |
| write | public | ⇒ write_feature_data |
| write_binary | public | ⇒ write_feature_data_binary |
| read | public | ⇒ read_feature_data |
| close | public | ⇒ close_featuredata |
Inherits
Interface Details¶
interface FeatureData¶
Procedure Details¶
function constructor_feature_data¶
function constructor_feature_data( &
filename, &
path, &
action &
)
Arguments
-
filename: character [in]– The name of the file. -
path: character [in]– The relative path to the file on disk. -
action: character [in]– action to be performed on file.
Called By
subroutine open_featuredata¶
subroutine open_featuredata( &
self, &
action &
)
Arguments
-
self: class(FeatureData) [inout] -
action: character [in]– action to be performed on file.
subroutine close_featuredata¶
subroutine close_featuredata( &
self &
)
Arguments
-
self: class(FeatureData) [in]
subroutine read_feature_data¶
subroutine read_feature_data( &
self, &
feature_calculator &
)
Arguments
-
self: class(FeatureData) [inout] -
feature_calculator: type(FeatureCalculator) [inout]
subroutine write_feature_data¶
subroutine write_feature_data( &
self, &
struc_id, &
struc_natoms, &
features, &
atomic_numbers, &
nfeat &
)
Arguments
-
self: class(FeatureData) [in] -
struc_id: integer (dim: (:)) [in] -
struc_natoms: integer (dim: (:)) [in]– number of atoms of structures on process -
features: real(DP) (dim: (:,:)) [in]– feature values of all structures on process max_nfeat x atoms on process -
atomic_numbers: integer (dim: (:)) [in] -
nfeat: integer (dim: (MAX_ELEM_NUM)) [in]– number of features for each element
subroutine write_feature_data_binary¶
subroutine write_feature_data_binary( &
self &
)
Arguments
-
self: class(FeatureData) [inout]