Skip to content

Running simple mo_column example #574

Description

@mathomp4

Now that I can build Claw (see #573), I decided to try out the mo_column code from the documentation using OpenMP transformation.

I can build and run the "before" case:

❯ gfortran -o before_transform mo_column.f90 main.f90

❯ ./before_transform 
   26116116.0    
   195520.172    

But when I try the transformed case:

❯ make cpu
/home/mathomp4/CLAWTest/claw-compiler/install-GCC9/bin/clawfc --target=cpu --directive=openmp -o mo_column_cpu_openmp.f90 mo_column.f90
mo_column.f90:-:- warning: Fine grain OpenMP directive generation is not advised for CPU target.
/home/mathomp4/CLAWTest/claw-compiler/install-GCC9/bin/clawfc -o main_cpu_openmp.f90 main.f90

❯ gfortran -o after_transform mo_column_cpu_openmp.f90 main_cpu_openmp.f90 
main_cpu_openmp.f90:15:55:

  CALL compute_column ( nz , q ( : , : ) , t ( : , : ) )
                                                       1
Error: Missing actual argument for argument ‘nproma’ at (1)

This is trivial to fix (add , nproma) to the call and when you do:

❯ ./after_transform 
   26116116.0    
   195520.172   

I was just wondering: is this expected? Or should Claw insert the nproma for you? (Just want to make sure my Claw is working as expected.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions