Coder Social home page Coder Social logo

Comments (4)

Beliavsky avatar Beliavsky commented on May 23, 2024 1

The subroutine where the error occurs is

    subroutine close (self)

        class(file), intent(out) :: self

        deallocate(self%filename)
        close(self%unit)

    end subroutine close

Since self is intent(out), I think its components start out unallocated, and you cannot deallocate something that is not allocated. When I remove the deallocate statement there is no error.

from forlab.

Beliavsky avatar Beliavsky commented on May 23, 2024 1

Works for me, thanks.

from forlab.

zoziha avatar zoziha commented on May 23, 2024

Yes, It shall be class(file), intent(inout) :: self.

Thank you for your use. I have recently been in contact with fortran-lang's projects stdlib and fftpack. I tried to improve the forlab project before, but it seems that I am not experienced enough and don’t have the idea of engineering. I have studied in fortran-lang for a period of time. Yesterday I just wanted to refactor forlab to make it perfect.
I plan to contribute some more meaningful routines to stdlib. Forlab will use stdlib as a dependency and specify it in the document to determine the survival range of forlab.

from forlab.

zoziha avatar zoziha commented on May 23, 2024

I submitted and merged a PR #18 , which should solve this issue.

from forlab.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.