Git Product home page Git Product logo

Comments (6)

platipodium avatar platipodium commented on August 16, 2024

Thanks for reporting this. I have not been able to reproduce the problem, but I'll try with the makefile you provided.

In general, I found the use of set_mask much more consistent than internal hacks employing constructs like foreach value in array[i,k,n] if value == NaN then cycle. Using a 2d mask makes this much more efficient.

from schism.

platipodium avatar platipodium commented on August 16, 2024

I also noticed that the fabm_driver.h has not been merged upstream yet.

So to define the mask, you need to add the file:

echo << EOT >  $FABM_BASE/src/drivers/schism/fabm_driver.h
! Copyright 2017 Helmholtz-Zentrum Geesthacht
! Licensed under the Apache License, Version 2.0
!  (http://www.apache.org/licenses/LICENSE-2.0)
! Author(s): Richard Hofmeister

#define _FABM_DIMENSION_COUNT_ 2
#define _FABM_DEPTH_DIMENSION_INDEX_ 1
#define _FABM_VECTORIZED_DIMENSION_INDEX_ 1

#define _FABM_VERTICAL_BOTTOM_TO_SURFACE_
#define _FABM_BOTTOM_INDEX_ -1

#define _FABM_MASK_TYPE_ integer
#define _FABM_MASKED_VALUE_ 1

#include "fabm.h"

EOT

from schism.

platipodium avatar platipodium commented on August 16, 2024

So this problem might be related to the missing fabm_driver.h. Please report if adding the driver fixes the problem. I will then merge it upstream.

from schism.

jpein1 avatar jpein1 commented on August 16, 2024

Thanks! After adding these lines

#define FABM_MASK_TYPE integer
#define FABM_MASKED_VALUE 1

to fabm_driver.h (of FABM) compilation works.

from schism.

platipodium avatar platipodium commented on August 16, 2024

Thanks for reporting, closing this as fixed

from schism.

platipodium avatar platipodium commented on August 16, 2024

I filed a PR on official fabm repo to include these lines upstream fabm-model/fabm#64

from schism.

Related Issues (20)

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.