Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Display method #73

Merged
merged 1 commit into from
Oct 10, 2021
Merged

Improved Display method #73

merged 1 commit into from
Oct 10, 2021

Conversation

vickysharma0812
Copy link
Member

This commit improves the Display function for DOF_ data type.

Now you can call

Dispaly(Vec, DOF, msg, unitNo)

For pretty printing

Test program

PROGRAM main
USE easifemBase
IMPLICIT NONE
TYPE( DOF_ ) :: obj
REAL( DFP ), ALLOCATABLE :: val( : )
CALL Initiate( obj, tNodes=[10], names=["U"], spaceCompo=[3], &
    & timeCompo=[1], storageFMT = FMT_DOF )
CALL Initiate( Val=val, obj=obj )
val(1:10) = 1; val(11:20)=2; val(21:)=3
CALL Display( Val, obj, "CALL Initiate( Val=val, obj=obj ) : " )
CALL DeallocateData( obj )
END PROGRAM main

The out is given below

# VAR :U
     DOF-1     DOF-2     DOF-3    
    -------   -------   -------   
    1.00000   2.00000   3.00000   
    1.00000   2.00000   3.00000   
    1.00000   2.00000   3.00000   
    1.00000   2.00000   3.00000   
    1.00000   2.00000   3.00000   
    1.00000   2.00000   3.00000   
    1.00000   2.00000   3.00000   
    1.00000   2.00000   3.00000   
    1.00000   2.00000   3.00000   
    1.00000   2.00000   3.00000

@vickysharma0812 vickysharma0812 self-assigned this Oct 10, 2021
@vickysharma0812 vickysharma0812 added documentation Improvements or additions to documentation enhancement New feature or request labels Oct 10, 2021
@vickysharma0812 vickysharma0812 added this to the easifemBase.v21.4.0 milestone Oct 10, 2021
@vickysharma0812 vickysharma0812 linked an issue Oct 10, 2021 that may be closed by this pull request
@vickysharma0812 vickysharma0812 merged commit 51d1efd into master Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display routine for DOF_ datatype 🚀 🔨
1 participant