Changeset 2765 for vendors/XMLIO_SERVER/current/src/IOSERVER/mod_pack.f90
- Timestamp:
- 2011-05-13T16:45:07+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendors/XMLIO_SERVER/current/src/IOSERVER/mod_pack.f90
r1897 r2765 5 5 INTEGER,SAVE :: pack_pos 6 6 7 INTERFACE pack 7 INTERFACE pack_data 8 8 MODULE PROCEDURE pack_r,pack_r1,pack_r2,pack_r3,pack_r4, & 9 9 pack_i,pack_i1,pack_i2,pack_i3,pack_i4, & … … 11 11 pack_c,pack_c1,pack_c2,pack_c3,pack_c4, & 12 12 pack_attr 13 END INTERFACE pack 14 15 INTERFACE unpack 13 END INTERFACE pack_data 14 15 INTERFACE unpack_data 16 16 MODULE PROCEDURE unpack_r,unpack_r1,unpack_r2,unpack_r3,unpack_r4, & 17 17 unpack_i,unpack_i1,unpack_i2,unpack_i3,unpack_i4, & … … 19 19 unpack_c,unpack_c1,unpack_c2,unpack_c3,unpack_c4, & 20 20 unpack_attr 21 END INTERFACE unpack 21 END INTERFACE unpack_data 22 22 23 23 INTERFACE pack_field … … 474 474 TYPE(attribut) :: attrib 475 475 476 CALL pack (attrib%object)477 CALL pack (attrib%name)478 CALL pack (attrib%type)479 CALL pack (attrib%dim)480 CALL pack (attrib%ndim)481 CALL pack (attrib%string_len)476 CALL pack_data(attrib%object) 477 CALL pack_data(attrib%name) 478 CALL pack_data(attrib%type) 479 CALL pack_data(attrib%dim) 480 CALL pack_data(attrib%ndim) 481 CALL pack_data(attrib%string_len) 482 482 483 483 SELECT CASE(attrib%type) 484 484 CASE (integer0) 485 CALL pack (attrib%integer0_ptr)485 CALL pack_data(attrib%integer0_ptr) 486 486 CASE (integer1) 487 CALL pack (attrib%integer1_ptr)487 CALL pack_data(attrib%integer1_ptr) 488 488 CASE (integer2) 489 CALL pack (attrib%integer2_ptr)489 CALL pack_data(attrib%integer2_ptr) 490 490 CASE (real0) 491 CALL pack (attrib%real0_ptr)491 CALL pack_data(attrib%real0_ptr) 492 492 CASE (real1) 493 CALL pack (attrib%real1_ptr)493 CALL pack_data(attrib%real1_ptr) 494 494 CASE (real2) 495 CALL pack (attrib%real2_ptr)495 CALL pack_data(attrib%real2_ptr) 496 496 CASE (logical0) 497 CALL pack (attrib%logical0_ptr)497 CALL pack_data(attrib%logical0_ptr) 498 498 CASE (logical1) 499 CALL pack (attrib%logical1_ptr)499 CALL pack_data(attrib%logical1_ptr) 500 500 CASE (logical2) 501 CALL pack (attrib%logical2_ptr)501 CALL pack_data(attrib%logical2_ptr) 502 502 CASE (string0) 503 503 CALL pack_string0(attrib%string0_ptr) … … 505 505 CALL pack_string1(attrib%string1_ptr) 506 506 CASE (string2) 507 CALL pack (attrib%string2_ptr)507 CALL pack_data(attrib%string2_ptr) 508 508 END SELECT 509 509 … … 512 512 SUBROUTINE pack_string0(str) 513 513 CHARACTER(LEN=attrib%string_len) ::str 514 CALL pack (str)514 CALL pack_data(str) 515 515 END SUBROUTINE 516 516 517 517 SUBROUTINE pack_string1(str) 518 518 CHARACTER(LEN=attrib%string_len) ::str(:) 519 CALL pack (str)519 CALL pack_data(str) 520 520 END SUBROUTINE 521 521 522 522 SUBROUTINE pack_string2(str) 523 523 CHARACTER(LEN=attrib%string_len) ::str(:,:) 524 CALL pack (str)524 CALL pack_data(str) 525 525 END SUBROUTINE 526 526 … … 533 533 TYPE(attribut) :: attrib 534 534 535 CALL unpack (attrib%object)536 CALL unpack (attrib%name)537 CALL unpack (attrib%type)538 CALL unpack (attrib%dim)539 CALL unpack (attrib%ndim)540 CALL unpack (attrib%string_len)535 CALL unpack_data(attrib%object) 536 CALL unpack_data(attrib%name) 537 CALL unpack_data(attrib%type) 538 CALL unpack_data(attrib%dim) 539 CALL unpack_data(attrib%ndim) 540 CALL unpack_data(attrib%string_len) 541 541 542 542 SELECT CASE(attrib%type) 543 543 CASE (integer0) 544 544 ALLOCATE(attrib%integer0_ptr) 545 CALL unpack (attrib%integer0_ptr)545 CALL unpack_data(attrib%integer0_ptr) 546 546 CASE (integer1) 547 547 ALLOCATE(attrib%integer1_ptr(attrib%dim(1))) 548 CALL unpack (attrib%integer1_ptr)548 CALL unpack_data(attrib%integer1_ptr) 549 549 CASE (integer2) 550 550 ALLOCATE(attrib%integer2_ptr(attrib%dim(1),attrib%dim(2))) 551 CALL unpack (attrib%integer2_ptr)551 CALL unpack_data(attrib%integer2_ptr) 552 552 CASE (real0) 553 553 ALLOCATE(attrib%real0_ptr) 554 CALL unpack (attrib%real0_ptr)554 CALL unpack_data(attrib%real0_ptr) 555 555 CASE (real1) 556 556 ALLOCATE(attrib%real1_ptr(attrib%dim(1))) 557 CALL unpack (attrib%real1_ptr)557 CALL unpack_data(attrib%real1_ptr) 558 558 CASE (real2) 559 559 ALLOCATE(attrib%real2_ptr(attrib%dim(1),attrib%dim(2))) 560 560 CASE (logical0) 561 561 ALLOCATE(attrib%logical0_ptr) 562 CALL unpack (attrib%logical0_ptr)562 CALL unpack_data(attrib%logical0_ptr) 563 563 CASE (logical1) 564 564 ALLOCATE(attrib%logical1_ptr(attrib%dim(1))) 565 CALL unpack (attrib%logical1_ptr)565 CALL unpack_data(attrib%logical1_ptr) 566 566 CASE (logical2) 567 567 ALLOCATE(attrib%logical2_ptr(attrib%dim(1),attrib%dim(2))) 568 CALL unpack (attrib%logical2_ptr)568 CALL unpack_data(attrib%logical2_ptr) 569 569 CASE (string0) 570 570 ALLOCATE(attrib%string0_ptr) … … 582 582 SUBROUTINE unpack_string0 583 583 CHARACTER(LEN=attrib%string_len) ::str 584 CALL unpack (str)584 CALL unpack_data(str) 585 585 attrib%string0_ptr=str 586 586 END SUBROUTINE … … 588 588 SUBROUTINE unpack_string1 589 589 CHARACTER(LEN=attrib%string_len) ::str(attrib%dim(1)) 590 CALL unpack (str)590 CALL unpack_data(str) 591 591 attrib%string1_ptr=str 592 592 END SUBROUTINE … … 594 594 SUBROUTINE unpack_string2 595 595 CHARACTER(LEN=attrib%string_len) ::str(attrib%dim(1),attrib%dim(2)) 596 CALL unpack (str)596 CALL unpack_data(str) 597 597 attrib%string2_ptr=str 598 598 END SUBROUTINE
Note: See TracChangeset
for help on using the changeset viewer.