Changeset 42 for XMLIO_SERVER/trunk/src/XMLIO/mod_axis.f90
- Timestamp:
- 10/30/09 16:29:39 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_SERVER/trunk/src/XMLIO/mod_axis.f90
r40 r42 29 29 TYPE(vector_axis),POINTER,SAVE :: axis_Ids 30 30 TYPE(sorted_list),POINTER,SAVE,PRIVATE :: Ids 31 32 INTERFACE axis__set_attribut 33 MODULE PROCEDURE axis__set_attribut_id,axis__set_attribut_pt 34 END INTERFACE 31 35 32 36 CONTAINS … … 137 141 END SUBROUTINE axis__set 138 142 139 SUBROUTINE axis__set_attribut(id,attrib) 143 SUBROUTINE axis__set_attribut_id(id,attrib,ok) 144 USE mod_attribut 145 USE error_msg 146 IMPLICIT NONE 147 CHARACTER(LEN=*),INTENT(IN) :: id 148 TYPE(attribut),INTENT(IN) :: attrib 149 LOGICAL,OPTIONAL,INTENT(OUT) :: ok 150 151 TYPE(axis),POINTER :: Pt_axis 152 INTEGER :: Pos 153 LOGICAL :: success 154 155 CALL sorted_list__find(Ids,hash(Id),Pos,success) 156 IF (success) THEN 157 Pt_axis=>axis_ids%at(Pos)%Pt 158 CALL axis__set_attribut_pt(Pt_axis,attrib) 159 IF (PRESENT(OK)) OK=.TRUE. 160 ELSE 161 IF (.NOT.PRESENT(OK)) THEN 162 WRITE(message,*) 'axis id :',id,'is undefined' 163 CALL error('mod_axis::axis__set_attribut') 164 ELSE 165 OK=.FALSE. 166 ENDIF 167 ENDIF 168 169 END SUBROUTINE axis__set_attribut_id 170 171 SUBROUTINE axis__set_attribut_pt(Pt_axis,attrib) 140 172 USE mod_attribut 141 173 USE mod_axis_attribut 142 174 USE error_msg 143 175 IMPLICIT NONE 144 CHARACTER(LEN=*),INTENT(IN) :: id176 TYPE(axis),POINTER :: Pt_axis 145 177 TYPE(attribut),INTENT(IN) :: attrib 146 147 TYPE(axis),POINTER :: Pt_axis148 INTEGER :: Pos149 LOGICAL :: success150 151 CALL sorted_list__find(Ids,hash(Id),Pos,success)152 IF (success) THEN153 Pt_axis=>axis_ids%at(Pos)%Pt154 ELSE155 WRITE(message,*) 'axis id :',id,'is undefined'156 CALL error('mod_axis::axis__set_attribut')157 ENDIF158 178 159 179 SELECT CASE(attrib%name) … … 172 192 END SELECT 173 193 174 WRITE(message,*) 'axis id ',id,' : Attribute type is incompatible with the provided value'194 WRITE(message,*) 'axis attribut ',attrib%name,' : type :',attrib%type,' : Attribute type is incompatible with the provided value' 175 195 CALL error('mod_axis::axis__set_attribut') 176 196 177 END SUBROUTINE axis__set_attribut 197 END SUBROUTINE axis__set_attribut_pt 178 198 179 199 SUBROUTINE axis__print(pt_axis)
Note: See TracChangeset
for help on using the changeset viewer.